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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
IF
Post Prodigy
Post Prodigy

multiplication and sum

Hi,

I have a simple table below.  I am using a slicer to count Qty * price, when I select more than one value in the slicer. For example if I select AB and CD in the slicer menu, i want to see (10*50)+(20*30) which is 1100. How can i write a measure for this purpose?

SlicerQtyPrice
AB1050
CD2030
DF3040

 

Thanks in advance

2 ACCEPTED SOLUTIONS
Jayee
Responsive Resident
Responsive Resident

Hi @IF ,

 

Try below measure

Measure= sumx(table, Qty*Price)

 

If this post helps, then please

 consider Accept it as the solution, Appreciate your Kudos!!

 

View solution in original post

mariussve1
Solution Supplier
Solution Supplier

Hi,

 

Measure =
Sumx ( table, table[qty] * table[price] )

 

mariussve1_0-1668701955121.png

 

 

Br

Marius

View solution in original post

2 REPLIES 2
mariussve1
Solution Supplier
Solution Supplier

Hi,

 

Measure =
Sumx ( table, table[qty] * table[price] )

 

mariussve1_0-1668701955121.png

 

 

Br

Marius

Jayee
Responsive Resident
Responsive Resident

Hi @IF ,

 

Try below measure

Measure= sumx(table, Qty*Price)

 

If this post helps, then please

 consider Accept it as the solution, Appreciate your Kudos!!

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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