Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
hi , not sure if this is the right forum but if this is the right forum, anyone can help me please. I am stucked with my own measure.....i am trying to create a measure that will display data of the first two column once i type 'yes' in the third column.
at the moment i am using switch(true(),max(table[final answer])="Yes", Max(Table[Organisation_dummy_name]),"")
however when i entered yes, it displays wrong answer...
I am expected to see South Australia, General, Diageo PLC in the table below when i entered "Yes" in the Final Answer of the table above (data source)
Can someone please help :)...I didn't know what's missing
Solved! Go to Solution.
Hi @Marshmallow ,
Below is my new table:
The new following DAX might work for you:
Measure =
var _fina = SELECTEDVALUE('Table'[Final answer])
var result =
IF(_fina == "yes" , MAX('Table'[Organisation_dummy_name])," ")
return result
The final output is shown in the following figure:
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Xianda, I still would like the row that doesn't have yes to be displayed but not displaying the organisation name. So taking your table as example, if Diageo PLC is not a yes for South Australia and General, it will be displayed as
South Australia | General | [blank]
Victoria | General | Diageo PLC
So whilst waiting for the Final Answer to be yes, I still need to have the State and Type displayed 🙂
Hi @Marshmallow ,
Below is my new table:
The new following DAX might work for you:
Measure =
var _fina = SELECTEDVALUE('Table'[Final answer])
var result =
IF(_fina == "yes" , MAX('Table'[Organisation_dummy_name])," ")
return result
The final output is shown in the following figure:
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Marshmallow ,
Below is my table:
The following DAX might work for you:
Measure =
CALCULATE(
MAX('Table'[Organisation_dummy_name]),
FILTER('Table' , 'Table'[Final answer] = "yes"))
The final output is shown in the following figure:
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |