The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi, I have two tables, which are segmented by different years (the three bars) and different axis members. The values sum up.
How can I create a measure that properly does what I want below, while taking into account slicers?
I have tried
Measure = DIVIDE(SUM(TableA[2017]);SUM(TableB[2017]))
But that only gives me the total value, not segmented by the axis or slicers.
Solved! Go to Solution.
Hi @jomikk,
You can get this result when you use shared dimensions. So for example if you have two tables with both a date column, you should add a calendar table that relates to these both tables containing a year column. This column should then be used in the chart.
If you use a measure that divides a SUM measure from both tables, it will do this based on the year from the calendar table that filters both tables with values.
Because it seems that you have columns with year's, please unpivot them so you have 1 column with Value and two rows with year. Join that year to a calendar table and voilla.
Hi @jomikk,
You can get this result when you use shared dimensions. So for example if you have two tables with both a date column, you should add a calendar table that relates to these both tables containing a year column. This column should then be used in the chart.
If you use a measure that divides a SUM measure from both tables, it will do this based on the year from the calendar table that filters both tables with values.
Because it seems that you have columns with year's, please unpivot them so you have 1 column with Value and two rows with year. Join that year to a calendar table and voilla.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
67 | |
52 | |
50 |
User | Count |
---|---|
121 | |
119 | |
77 | |
62 | |
61 |