Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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))
User | Count |
---|---|
93 | |
86 | |
78 | |
72 | |
66 |
User | Count |
---|---|
115 | |
106 | |
85 | |
65 | |
64 |