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.
Hi,
I would like to convert some measure values:
into a table like this:
Name | Actual |
Total Income | ($6,075,988) |
Total Expense | $18,450 |
Total COGS | $4,452,726 |
Any ideas?
Solved! Go to Solution.
Hi @Stanzarectah,
You can accomplish this with a disconnected (no relationships to other tables) table that holds the values of the measures you want to display.
Then use a switch statement to display the correct value.
display =
var selection = SELECTEDVALUE(Disconnected[Measure Name])
RETURN
SWITCH(
TRUE(),
Selection = "Total COGS", 'Time'[Total COGS],
Selection = "Total Expense", 'Time'[Total Expense],
Selection = "Total Income", 'Time'[Total Income])
Then create a table with the Measure column from the disconnected table and the display measure.
Hi @Stanzarectah,
You can accomplish this with a disconnected (no relationships to other tables) table that holds the values of the measures you want to display.
Then use a switch statement to display the correct value.
display =
var selection = SELECTEDVALUE(Disconnected[Measure Name])
RETURN
SWITCH(
TRUE(),
Selection = "Total COGS", 'Time'[Total COGS],
Selection = "Total Expense", 'Time'[Total Expense],
Selection = "Total Income", 'Time'[Total Income])
Then create a table with the Measure column from the disconnected table and the display measure.
Thank you so much @johncolley for the quick response !
I was able to achieve this and it works like a charm.
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |