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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Matthias93
Helper III
Helper III

Multiplying a column based on slicer

Hi,

 

I have a data model where I have a day in the year and a certain utlization in one table. For example Day 1 = 0.4, Day 2 = 0.6. Now I also have a table which lists values between 1 and 15. I have put this table in a slicer with 15 different options. 

 

Is it possible to now multiply my utilization by the number selected in my slicer i.e.:

 

Slicer selection = 4

Day 1 = 1.6

Day 2 = 3.2

 

I'm not sure if this is possible or not?

 

Kind regards,

Matthias

2 ACCEPTED SOLUTIONS
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Matthias93,

The value of Day 2 should be 2.4(4*0.6), right? If so, I make a test in the following sample tables.
1.0.JPG

1.1.JPG

Create the following measure in the first table.

multiplyMeasure = MAX(Table2[Column1])*MAX(Table1[Column1])


Create a table visual and  test the slicer.
1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi Lydia,

 

This is exactly what I needed for my dashboard. Thanks for your quick help, I'll try to apply it to my case now.

 

Kind regards,

Matthias

View solution in original post

6 REPLIES 6
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Matthias93,

The value of Day 2 should be 2.4(4*0.6), right? If so, I make a test in the following sample tables.
1.0.JPG

1.1.JPG

Create the following measure in the first table.

multiplyMeasure = MAX(Table2[Column1])*MAX(Table1[Column1])


Create a table visual and  test the slicer.
1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Lydia!

 

Your solution worked great, but I was wondering if your solution also applies when using 2 slicers. What I mean is to first choose an option of multiplier, and then choosing a second option to again multiply the total amount from the previous operation.

 

Thanks!

 

Juan

Hi Lydia,

 

This is exactly what I needed for my dashboard. Thanks for your quick help, I'll try to apply it to my case now.

 

Kind regards,

Matthias

@Matthias93,

If the above reply solves your issue, please accept my reply as answer to close this thread.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

I have a data model where I have a day in the year and a certain utlization in one table. For example Day 1 = 0.4, Day 2 = 0.6. Now I also have a table which lists values between 1 and 15. I have put this table in a slicer with 15 different options. 

 

Is it possible to now multiply my utilization by the number selected in my slicer i.e.:

 

Slicer selection = 4

Day 1 = 1.6

Day 2 = 3.2

 

I'm not sure if this is possible or not?

 

Kind regards,

Matthias

@Matthias93

 

You can use the SELECTEDVALUE function

 

SelectedVALUE(SlicerTableName[SlicerColumnName]) should give you the value selected in the slicer,,, then you can multiply it with any other MEASURE

 

However you can not use it in a calculated column

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.