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.
Solved! Go to Solution.
Hi @bmccabe_PCS ,
Please refer the measure.
Measure =
var _current = CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[year],'Table'[product]))/CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[year]))
var _last = CALCULATE(SUM('Table'[value]),FILTER(ALLEXCEPT('Table','Table'[product]),'Table'[year]=SELECTEDVALUE('Table'[year])-1))/CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),'Table'[year]=SELECTEDVALUE('Table'[year])-1))
return
_current-_last
Best Regards,
Jay
Hi @bmccabe_PCS ,
Please refer the measure.
Measure =
var _current = CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[year],'Table'[product]))/CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[year]))
var _last = CALCULATE(SUM('Table'[value]),FILTER(ALLEXCEPT('Table','Table'[product]),'Table'[year]=SELECTEDVALUE('Table'[year])-1))/CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),'Table'[year]=SELECTEDVALUE('Table'[year])-1))
return
_current-_last
Best Regards,
Jay
I am getting an error in the Calculate expressions that the second pat of the calculate expression is not valid.
I have created and added a DATE table to the project. I was able to get the YEAR Totals for each product.
Now I need to show the % of YEAR Totals that each product represents. I get a circular reference when trying to CALCULATE the YEAR totals which I need to calculate the % the total of the Year total for each grouped product and each year:
@bmccabe_PCS , it should be something like this
CALCULATE(
divide(SUM('Imported_Data'[VOLUME]),calculate(SUM('Imported_Data'[VOLUME]), allselected('Imported_Data'))),
)
-
CALCULATE(
divide(SUM('Imported_Data'[VOLUME]),calculate(SUM('Imported_Data'[VOLUME]), allselected('Imported_Data'))),
DATEADD('Imported_Data'[MONTH_DATE].[Date], -1, YEAR)
)
% of total only subtract
You can also try with datesytd
Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
Thank you for this! I will test it out and report back. Sorry was not around for a while:)
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 |
---|---|
114 | |
98 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |