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
asalazarjr
Frequent Visitor

Calculate category total value and place value for all subcategory values

Hello, i need help creating a calculated column to show total category value for all respective subcategory values for specific quarter. I've created this calculated measure and i figure it should work once i get the red text correct. Although, im open to suggestions if there is another path. asalazarjr_0-1602686854369.png

Thanks for any suggestions.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@asalazarjr , Try like

calculate(sum(Table[values]), filter(allselcted(Table), Table[category] =max(table[category]) && Table[Quarter] =max(table[Quarter])))
or
calculate(sum(Table[values]), allexcept(Table, Table[category] ,table[Quarter]))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@asalazarjr , Try like

calculate(sum(Table[values]), filter(allselcted(Table), Table[category] =max(table[category]) && Table[Quarter] =max(table[Quarter])))
or
calculate(sum(Table[values]), allexcept(Table, Table[category] ,table[Quarter]))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors