Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to refer above value and add to below values

Hi,

I have a table and need to add the above values to the below values.

 

Screenshot_8.png

Expected Result

MonthCategory Level 1

6                            2660

12                          3440

18                          4372

24                          4792 

 

Similar to Level2,3,4 & 5.

 

Regards,

Yuvaraj

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

To create a measure as below.

 

Measure = 
CALCULATE (
    SUM ( tbl_Complexity[CommunityCount] ),
    FILTER (
        ALLEXCEPT ( tbl_Complexity, tbl_Complexity[Complexity] ),
        tbl_Complexity[Monthcategory] <= MAX ( 'tbl_Complexity'[Monthcategory] )
    )
)

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
Vikram123
Helper I
Helper I

Hi You can use bellow Code

Level 1 Running total =
CALCULATE(
SUM('TableName'[Level1]),
FILTER(
ALLSELECTED('TableName'[MonthCategory]),
ISONORAFTER('TableName'[MonthCategory], MAX('TableName'[MonthCategory]), DESC)
)
)

 

 

 

Did I answer your question? Mark my post as a solution!

Anonymous
Not applicable

Hi @Anonymous ,

 

you can add a column with the following DAX:

 

Column = CALCULATE(SUM(Table1[Level 1]),FILTER('Table1','Table1'[Month]<=EARLIER('Table1'[Month])))
 
 
Best regards
Timo
Anonymous
Not applicable

Hi 

Thanks for your reply.

 

I have Complexity column,  it contains Level1,2,3,4 & 5. Using complexity I have created measures to get the count against every level.

Measure for Level 1:

Level1 = CALCULATE (
sum(tbl_Complexity[CommunityCount]),
FILTER (
ALL ( tbl_Complexity ),
tbl_Complexity[Complexity] = "Level-1"
))
similarly for remaining levels
Screenshot_9.png
It's working fine but am expecting to get the running total with the above values. I have tried the running total calculation too but it's not showing correct count.
 
 

Hi @Anonymous ,

 

To create a measure as below.

 

Measure = 
CALCULATE (
    SUM ( tbl_Complexity[CommunityCount] ),
    FILTER (
        ALLEXCEPT ( tbl_Complexity, tbl_Complexity[Complexity] ),
        tbl_Complexity[Monthcategory] <= MAX ( 'tbl_Complexity'[Monthcategory] )
    )
)

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.