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

Use a Calculated value as a slicer

Hello everyone, 

I have created a dashboard that uses user inputs (in the form of dropdown menus) to calculate a single value (in that case the solar insolation needed for a building). This works well and I'm able to get a final value that I can display. 

For my visual, I would like to filter a map to only show the cities that have a solar insolation value higher than the one calculated (I can do it manually using a slicer and by entering the value I found but I would like it to be automatic). 

My base data is a list of cities with associated solar insolation values. 

I haven't been able to find my solution online yet. 

 

Thank you in advance, 

Simon 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @Simon_G - Create a measure to filter cities based on whether their solar insolation values are higher than the calculated solar insolation needed. 

 

Below measure i have used for testing with financial sales and profittotal, you can change it to  solar insolation measure values.

CitiesFiltered =
VAR TotalSales = SUMX('financials', financials[Sales])
VAR TotalProfit = [profittotal]
RETURN
    IF(TotalSales >= TotalProfit, 1, 0)
 
In the Filters pane for the map visual, add the CitiesFiltered measure.Set the filter to only include rows where CitiesFiltered is 1.
 
rajendraongole1_0-1718386209537.png

 

 

try the above process and let know. 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
Simon_G
Frequent Visitor

It worked! Thank you so much!

rajendraongole1
Super User
Super User

Hi @Simon_G - Create a measure to filter cities based on whether their solar insolation values are higher than the calculated solar insolation needed. 

 

Below measure i have used for testing with financial sales and profittotal, you can change it to  solar insolation measure values.

CitiesFiltered =
VAR TotalSales = SUMX('financials', financials[Sales])
VAR TotalProfit = [profittotal]
RETURN
    IF(TotalSales >= TotalProfit, 1, 0)
 
In the Filters pane for the map visual, add the CitiesFiltered measure.Set the filter to only include rows where CitiesFiltered is 1.
 
rajendraongole1_0-1718386209537.png

 

 

try the above process and let know. 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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.