Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
I have a report with a live connection to a model.
I have the following table:
Country | Code | Message |
USA | 999 | All is well |
Canada | 999 | Error today |
And I want to create another column that only contains the messaged for Canada-Code
Country | Code | Message | Message Canada |
USA | 999 | All is well | Error today |
USA | 999 | All is well | Error today |
Any idea of how to do that only using a measure? What I was doing before was loading a new table with just the data for Canada and then joining to the original table.
Solved! Go to Solution.
Ok I have solved it
Canada Message =
var selec = SELECTEDVALUE(Code)
return
CALCULATE(max(message),FILTER(all(message table),Country="Canada" && Code=selec))
Ok I have solved it
Canada Message =
var selec = SELECTEDVALUE(Code)
return
CALCULATE(max(message),FILTER(all(message table),Country="Canada" && Code=selec))
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
67 | |
65 | |
42 | |
42 |
User | Count |
---|---|
46 | |
40 | |
28 | |
27 | |
26 |