Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
I am really stuck and need some guidance.
I have 5 years worth of sales data which I have converted to a % of total sales over the selected period. I have also built a measure that allows me to cumulate these percentages to 100% over the selected period of time.
What I cannot figure out is the following: I want to be able to look at the cumulative % development for each year (from Jan-Dec) on the same line chart - using DAX.. I can look at one year at a time, but if I select all the years they stack to cumulatively get me to 100%. I need to see them discretly built to 100%.
How I get the percentage of volume to total volume per month:
Above is wrong (last column) because if I just select 2017 I get this result, which is correct.
I am new to Power BI and am learning, so any help and explanation as to how to approach this would be greatly appreciated.
Solved! Go to Solution.
In this example you should use simple time intelligence functionalities.
I would calculate the measure using the DATESYTD and then it should relflect the correct figures.
Assuming that you have a calendar table, you can use this measure:
Volume YTD% =
DIVIDE (
CALCULATE (
SUM ( Greg_SCOPS_Excellence[Base Quantity (SKU)] ),
DATESYTD ( 'Calendar'[Date] )
),
CALCULATE (
SUM ( Greg_SCOPS_Excellence[Base Quantity (SKU)] ),
ALLEXCEPT ( 'Calendar', 'Calendar'[Year] )
)
)
In this example you should use simple time intelligence functionalities.
I would calculate the measure using the DATESYTD and then it should relflect the correct figures.
Assuming that you have a calendar table, you can use this measure:
Volume YTD% =
DIVIDE (
CALCULATE (
SUM ( Greg_SCOPS_Excellence[Base Quantity (SKU)] ),
DATESYTD ( 'Calendar'[Date] )
),
CALCULATE (
SUM ( Greg_SCOPS_Excellence[Base Quantity (SKU)] ),
ALLEXCEPT ( 'Calendar', 'Calendar'[Year] )
)
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |