Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi Profis,
I have question regarding to cumulative measure. I create i cumulative measure as below :
After sorting depend on Quantity :
Note : Earlier measure dos't work with my Power BI
Thanks in Advance 🙂
Solved! Go to Solution.
Hi @Talal141218 ,
Please try below steps:
1. below is my test table
Table:
2. create a measure with below dax formula
cumulative =
VAR cur_quantity =
SELECTEDVALUE ( 'Table'[Quantity] )
VAR tmp =
FILTER ( ALL ( 'Table' ), [Quantity] >= cur_quantity )
RETURN
SUMX ( tmp, [Quantity] )
3. add a table visual with table fields and mesure
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Talal141218 ,
It's normal, there's nothing wrong with it.
For your measure calculation logic, it does a cumulative sum based on your "Item Number" field, when you sort the "Quantity" field in the table visual, it doesn't change the logic of the calculation.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your answer. could you please share with me the formula, which I can sort the cumulative amount.
Hi @Talal141218 ,
Please try below steps:
1. below is my test table
Table:
2. create a measure with below dax formula
cumulative =
VAR cur_quantity =
SELECTEDVALUE ( 'Table'[Quantity] )
VAR tmp =
FILTER ( ALL ( 'Table' ), [Quantity] >= cur_quantity )
RETURN
SUMX ( tmp, [Quantity] )
3. add a table visual with table fields and mesure
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Is there any Expert can help me in this issue 🙂 ?
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
8 | |
7 |