Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
84 | |
84 | |
72 | |
49 |
User | Count |
---|---|
143 | |
131 | |
109 | |
64 | |
55 |