• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Filter and calcuatetable not working.

mac2

New Member
In power BI creating a column using DAX is working but measures doesn't. I have tried a simple table:


StudentId
NameGenderColumn
1AlexM1
2PeterM1
3JyotiF0
4RitaF0

Column = If('Table'[Gender]="M",1,0) This works But the measure:

FilteredStudents = FILTER( Students, Students[Gender] = "F") doesn't work.

FilteredStudents = CALCULATETABLE( Students, Students[Gender] = "F") this doesn't work either.

when i type total_student = calculate(stu it should give me an option to select but it only show details about calculated columns.
 
error: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.
 
How are you using your measure? Context of DAX measure evaluation is critical in order for us to help you.
But why do it in measure? That's column transformation type operation and best done in PQ stage. Not in data model using DAX.

What is your end goal?
 
Back
Top