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

Create total measure

Hello,

 

I'm trying to create a measure that calculates the total quantity for each product in the selected date, here is an exemple: 

 

MaJar_0-1678791915467.png

Thanks in advance 🙂 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MaJar , Create a measure like

 

Calculate(Sum(Table[Quantity]), removefilters(Table[Date]) )

 

or

 

Calculate(Sum(Table[Quantity]), filter(allselected(Table) , Table[Product] = max(Table[Product]) ) )

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@MaJar , Create a measure like

 

Calculate(Sum(Table[Quantity]), removefilters(Table[Date]) )

 

or

 

Calculate(Sum(Table[Quantity]), filter(allselected(Table) , Table[Product] = max(Table[Product]) ) )

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 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