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.
Hello everyone,
I have the following data table:
And I need to be able to do the following operation: When the Date, Cat2 and Cat3 columns match, they multiply the Value column by their match column, i.e. in the example case you would do the following:
Finally, the result should be added, obtaining the following:
30+24+30+35 = 119
Does anyone know how to do it without having to create a new table?
Thank you very much!
Solved! Go to Solution.
@Anonymous
Measure =
SUMX(
SUMMARIZE(
'Table',
'Table'[Date],
'Table'[Cat2],
'Table'[Cat3]
),
CALCULATE(
PRODUCTX(
'Table',
[Value]
)
)
)
Hi @Anonymous ,
1) Load your data into report view
2) Add a calculated column to fetch previous value
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊
@Anonymous
Measure =
SUMX(
SUMMARIZE(
'Table',
'Table'[Date],
'Table'[Cat2],
'Table'[Cat3]
),
CALCULATE(
PRODUCTX(
'Table',
[Value]
)
)
)
Thanks a lot!
@Anonymous my pleasure 🙂
Hey, check out my showcase report:
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up if you liked it 🙂
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |