Skip to main content
cancel
Showing results for 
Search instead 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

Reply
vini_udenia
Helper I
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 CodeModeIndicator countSchool Level Indicator count
5On-Screen368368
5Project0368
104On-Screen2741320
104Project10461320
104ePortfolio01320
253On-Screen690690
253Project0690
1 ACCEPTED SOLUTION
MahyarTF
Memorable Member
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])
                                                )
MahyarTF_0-1670236167648.png

 

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

Mahyartf

View solution in original post

3 REPLIES 3
v-jianboli-msft
Community Support
Community Support

Hi @vini_udenia 

 

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

How to Get Your Question Answered Quickly

 

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.

MahyarTF
Memorable Member
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])
                                                )
MahyarTF_0-1670236167648.png

 

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

Mahyartf

Thanks a lot this works! 🙂 

Helpful resources

Announcements
Europe Fabric Conference

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.