Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
101 | |
66 | |
49 | |
39 | |
32 |
User | Count |
---|---|
166 | |
117 | |
61 | |
58 | |
42 |