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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
PowerBi_Xandar
Frequent Visitor

Filtering Table on Measure Value

Hi 

I have a dataset as shown below. 

Product Dimension 1Dimension 2 
A2520
B3219
C2126
D2625
E2023
F1927


Objectives are : 
1- To create two slicers with Dimension 1 and Dimesion 2 , on which we can enter the values (New Paramter Slicer). 
2- A Card Visual or any big visual where we get the Value of Area i.e. (Dimension 1 * Dimesion 2)
3- Then value of Area should filter the table with 5% tolerance.
For Eg: 
Dimension 1 is 20 and Dimension 2 is 21, then we have Area as 420. This Value 420 should filter the Table with 5% tolerance, that should give the values of area in Area column from  min 399 to max 441. 
 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PowerBi_Xandar ,

 

Because in your example, dimension 1 and dimension 2 you choose the values of different rows in the same main table. So for the dimension fields of the two slicers, they need to come from two new separate tables.

Two calculated tables:

 

D1 = DISTINCT('Table'[Dimension 1])
D2 = DISTINCT('Table'[Dimension 2])

 

The measure of area can be created like:

 

Area = SELECTEDVALUE('D1'[Dimension 1])*SELECTEDVALUE('D2'[Dimension 2])

 

At last, create a measure to filter the area column.

 

IF(ISFILTERED('D1'[Dimension 1])&&ISFILTERED('D2'[Dimension 2]),IF([Area]*1.05>=MAX('Table (2)'[Area column])&&[Area]*0.95<=MAX('Table (2)'[Area column]),1),1)

 

Put it into the visual-level filters, set up show items when the value is 1.

vstephenmsft_0-1665125371890.png

When 21 and 20 are filtered.

vstephenmsft_1-1665125381445.png

 

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @PowerBi_Xandar ,

 

Because in your example, dimension 1 and dimension 2 you choose the values of different rows in the same main table. So for the dimension fields of the two slicers, they need to come from two new separate tables.

Two calculated tables:

 

D1 = DISTINCT('Table'[Dimension 1])
D2 = DISTINCT('Table'[Dimension 2])

 

The measure of area can be created like:

 

Area = SELECTEDVALUE('D1'[Dimension 1])*SELECTEDVALUE('D2'[Dimension 2])

 

At last, create a measure to filter the area column.

 

IF(ISFILTERED('D1'[Dimension 1])&&ISFILTERED('D2'[Dimension 2]),IF([Area]*1.05>=MAX('Table (2)'[Area column])&&[Area]*0.95<=MAX('Table (2)'[Area column]),1),1)

 

Put it into the visual-level filters, set up show items when the value is 1.

vstephenmsft_0-1665125371890.png

When 21 and 20 are filtered.

vstephenmsft_1-1665125381445.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Hi Stephen, 
Thank You for the solution, it works. 

I wish power bi fix the What if slicer single value selection issue.  

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors