March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I'm trying to do a calculation of YOY actual difference. I am able to not calculate future months but the total is not correct. I think I need to use a SUMX instead but not sure how to write the logic. any help would be appriciated.
Solved! Go to Solution.
Hi,
Does this measure work?
Measure = SUMX(SUMMARIZE(Calendar,Calendar[Year],Calendar[Month],"ABCD",[diff YoY Acctual]),[ABCD])
If it does not, then share the link from where i can download your PBI file.
Hi,
You may download my PBI file from here.
Hope this helps.
Hello Ashish,
in the dummy file I created a custom column called month name in the calendar table, then used the measure you created
Hi,
Does this measure work?
Measure = SUMX(SUMMARIZE(Calendar,Calendar[Year],Calendar[Month],"ABCD",[diff YoY Acctual]),[ABCD])
If it does not, then share the link from where i can download your PBI file.
tried this measure with the dummy data, did not work:-(
Hello Ashish,
THanks for the reply, when I try to put the measure in, this is the error I get. I do have a calendar table. how do you prefer I share the PBIX File?
Hi,
You may download my PBI file from here.
Hope this helps.
Thank you so much for your help, but now I have a different problem,
As you can see the YOY is calculated correctly now at the year month level, but it is not correct at the customer level. I need a generic YOY difference measure that can calculate YOY difference in by any column. Any help with how to modify the code would be super helpful. Thank you again for your help.
https://drive.google.com/file/d/11iIHWdMjnCOGJOmBBiIjFH2ljTKJ6vN3/view?usp=sharing
Hi,
Upload the file on Google Drive and share the download link here.
Thank you Ashish, I got it!! thanks for your help.
You are welcome.
I'm still having alot of trouble actualy with sums, can you help?
What problems are you facing? Describe the question clearly and also show the expected result.
Hello Ashish,
in the dummy file I created a custom column called month name in the calendar table, then used the measure you created
https://drive.google.com/file/d/1DUe9RNOXMqIOPGB1n4h-197L0Yni9f9c/view?usp=sharing
here you go, I created the file with diff YOY amount just calcuated as revenue-revnue ly. as you can see it is calculating into the future, I'd like to exclude that from my visual.
thanks I'm going to create some dummy data.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |