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.
Hello,
I would like to create a column that calculates cumulative values after filtering the ProjectName column.
So for example, if I filter the ProjectName column and choose PRO_01_OnTraget, then the result should be like that:
I would appreciate your assistance so much.
Best regards,
Hayman
Solved! Go to Solution.
I found how it should be:
Since the filter is based on a Text value (not date nor numerical), then filter using the "Values" function
So it should be:
=CALCULATE(SUM('Table1'[NonCumulativeValues] ), FILTER ( ALL ( 'Table1' ), [StartPeriod] <= MAX ( [StartPeriod] )), VALUES ( 'Table1'[ProjectName] ) ) )
Best regards,
Hayman
What determines the order? Do you have date column that can be used?
Give this measure a crack. I think it might be close
Measure = CALCULATE ( SUM ( 'Table1'[NonCumulativeValues] ), FILTER ( ALL ( 'Table1' ), [StartPeriod] <= MAX ( [StartPeriod] ) && Table1[ProjectName] = MAX ( 'Table1'[ProjectName] ) ) )
I get an error:
The function MAX takes an argument that evaluates to numbers or dates and cannot work with values of type String
I think this is coming from the last MAX function in the measure, since the "ProjectName" is a string.
Please advise,
Regards,
Hayman
I found how it should be:
Since the filter is based on a Text value (not date nor numerical), then filter using the "Values" function
So it should be:
=CALCULATE(SUM('Table1'[NonCumulativeValues] ), FILTER ( ALL ( 'Table1' ), [StartPeriod] <= MAX ( [StartPeriod] )), VALUES ( 'Table1'[ProjectName] ) ) )
Best regards,
Hayman
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
87 | |
65 | |
50 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |