cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I

## How to create a rolled up measure that repeats for lower levels in hierarchy

Hello,

I have created a custom indicator in my model and I want to create a measure which will rollup the value of this indicator at school level and repeat it if another dimension is pulled in. Below table shows the School, mode and indicator. I want to use DAX to calculate School level indicator count.

 School Code Mode Indicator count School Level Indicator count 5 On-Screen 368 368 5 Project 0 368 104 On-Screen 274 1320 104 Project 1046 1320 104 ePortfolio 0 1320 253 On-Screen 690 690 253 Project 0 690
1 ACCEPTED SOLUTION
Memorable Member

Hi,

Use the below code for creating the Measure in your model :

School Level Indicator Count Measure = CALCULATE(sum(Sheet75[Indicator count]),
all(sheet75),
Sheet75[School Code] = SELECTEDVALUE(Sheet75[School Code])
)

Appreciate your Kudos and please mark It as a solution if it helps you

Mahyartf
3 REPLIES 3
Community Support

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

Refer to:

How to provide sample data in the Power BI Forum

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Memorable Member

Hi,

Use the below code for creating the Measure in your model :

School Level Indicator Count Measure = CALCULATE(sum(Sheet75[Indicator count]),
all(sheet75),
Sheet75[School Code] = SELECTEDVALUE(Sheet75[School Code])
)

Appreciate your Kudos and please mark It as a solution if it helps you

Mahyartf
Helper I

Thanks a lot this works! 🙂

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.