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
tracytran91
Helper III
Helper III

Filter values which achieves/unachieves target in a matrix

Hi friends, 

 

I have a matrix table which shows up the performance of region.

If region performance is greater than pass working day in a month, that region achieves target. Conversely, It unachieves target.

I created a table selection allowed the user to filter which region achieved/unachieved target in month. 

I am unable to create a calculated column which shows achieve/unachieve because of complicated model. 

It is possbile to create MEASURE to allow the users to filter regions achieved/unachieved  target? 

 

Any help is highly apprecitated. 

Thank you in advance.

 

ask.png

 

 

 

1 ACCEPTED SOLUTION
FarhanAhmed
Community Champion
Community Champion

A workaround will be like this.

1- Create a measure with your criteria that will return Text Values.

 

_Achive = IF([_Measure]>6 , "Achieve","Not Achieve")

 

 

2- Create a Filter Table (disconnected) having 2 values("Achieve" & "Not Achieve") which will be used in Slicer

3- Create another measure to return True if the condition is met.

 

 

_Criteria = 
Var a = [_Achive]
var b = SELECTEDVALUE('Filter'[Criteria],MAX('Filter'[Criteria]))
RETURN 
//b
IF (HASONEVALUE('Filter'[Criteria]),IF(a=b,1,0),1)

 

 

4- Now at the Visual Level filter put this new measure and Filter out values when the condition is 1

5- Create a slicer and put Filter Table values in it. Do a selection and check if the results are the same as required.

 

 







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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
FarhanAhmed
Community Champion
Community Champion

A workaround will be like this.

1- Create a measure with your criteria that will return Text Values.

 

_Achive = IF([_Measure]>6 , "Achieve","Not Achieve")

 

 

2- Create a Filter Table (disconnected) having 2 values("Achieve" & "Not Achieve") which will be used in Slicer

3- Create another measure to return True if the condition is met.

 

 

_Criteria = 
Var a = [_Achive]
var b = SELECTEDVALUE('Filter'[Criteria],MAX('Filter'[Criteria]))
RETURN 
//b
IF (HASONEVALUE('Filter'[Criteria]),IF(a=b,1,0),1)

 

 

4- Now at the Visual Level filter put this new measure and Filter out values when the condition is 1

5- Create a slicer and put Filter Table values in it. Do a selection and check if the results are the same as required.

 

 







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

Proud to be a Super User!




OMG! @FarhanAhmed It is perfectly awesome!! 

 

Thank you so much!

 

 

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.