Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello
I have a slicer, cotaining EURO, DOLLAR and LOCAL. This is from a table called CURRENCY TYPE.
I want to use this slicer to select certain columns from another table called INVOICES.
So if the slicer is on EURO , sum(column Euro Sales from INVOICES) , if DOLLAR , sum(column USD Sales from INVOICES) , Local Sales from INVOICES.
Any ideas would be greatly appreciated??
Thanks
Gavin
Solved! Go to Solution.
try this:
Measure = VAR Currency = SELECTEDVALUE ( CURRENCY_TYPE[<ColumnName>] ) RETURN SWITCH ( TRUE (), Currency = "EURO", [Euro Sum Measure], Currency = "USD", [USD Sum Measure], Currency = "Local", [Local Sum Measure] )
try this:
Measure = VAR Currency = SELECTEDVALUE ( CURRENCY_TYPE[<ColumnName>] ) RETURN SWITCH ( TRUE (), Currency = "EURO", [Euro Sum Measure], Currency = "USD", [USD Sum Measure], Currency = "Local", [Local Sum Measure] )
Thanks, Worked perfectly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |