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
Good team I would like to help me with the following situation:
I have 2 measures called Sales 2021 and Sales 22. I made a measure called opportunity 2022 in which I want to put the sales of the products that were sold in 2021 but in 2022 they were not had. This measure gives me what I want to do but does not show me the total.
As you can see it does not show me the total and I would like it to appear.
Thank you for your help
Solved! Go to Solution.
Hi @Syndicate_Admin ,
Based on your description, I have created a simple sample:
Please try:
Measure =
var _a = SUMMARIZE('Table','Table'[ID],'Table'[Sales 2021],'Table'[Sales 2022],"value",IF([Sales 2022]=0,[Sales 2021]))
return SUMX(_a,[value])
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
Based on your description, I have created a simple sample:
Please try:
Measure =
var _a = SUMMARIZE('Table','Table'[ID],'Table'[Sales 2021],'Table'[Sales 2022],"value",IF([Sales 2022]=0,[Sales 2021]))
return SUMX(_a,[value])
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Share the download link of your PBI file.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
108 | |
73 | |
54 | |
52 | |
44 |
User | Count |
---|---|
163 | |
110 | |
69 | |
60 | |
51 |