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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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