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, total noob here.
I tried to search, but I'm so new that I'm not sure of the right terms to look for. As a result, none of the answers I found fit my stage.
Here's an example of the data I'm working with:
TransactionID | Transaction value | Status of the transaction |
123 | $100 | 1 |
456 | $300 | 1 |
789 | $50 | 2 |
What I would like to calculate is the value of transactions with a status of 1 as a percentage of the total sum of transaction values.
In this example, the correct answer must be 89%.
Can someone point me in the right direction?
Solved! Go to Solution.
Hi,
try this:
Measure = CALCULATE(SUM('Table'[Transaction Value]),FILTER('Table','Table'[Transaction Status]=1))/SUM('Table'[Transaction Value])
The result shows:
Best Regards,
Giotto Zhi
Hi,
try this:
Measure = CALCULATE(SUM('Table'[Transaction Value]),FILTER('Table','Table'[Transaction Status]=1))/SUM('Table'[Transaction Value])
The result shows:
Best Regards,
Giotto Zhi
@abosan ,
Try
Measure =
divide(
calculate(sumx(Filter(Table,Table[Transaction Status] =1 ),Table[Transaction Value])),
calculate(sum(Table[Transaction Value]),ALL(Table))
)
OR
Measure =
divide(
calculate(sumx(Filter(Table,Table[Transaction Status] =1 ),Table[Transaction Value]),ALLEXCEPT(Table,Table[Transaction Status])),
calculate(sum(Table[Transaction Value]),ALL(Table))
)
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |