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
Anonymous
Not applicable

Filter a table based on output of a measure

Hi Team,

I have a Measure1 who's value changes dynamically if the value today is A tomorrow it may become B.

I have table and i want to filter all the values in this table Visual based on the output of the Measure1.

Is it possible to apply the output of the measure as a visual level filter to the table visual?

Regards,
Hema

4 REPLIES 4
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

According to your description, I created some data to show:

v-yangliu-msft_0-1606441623201.png

v-yangliu-msft_1-1606441623203.jpeg

Here are the steps you can follow:

1. Create measure.

Measure =
var _com=CALCULATE(MAX('Table'[Company]),FILTER('Table','Table'[Date]=TODAY()))
return
CALCULATE(SUM('Table (2)'[amount]),FILTER('Table (2)','Table (2)'[Company]=_com))

2. Result.

Today is November 27, 2020, so the result is

v-yangliu-msft_2-1606441623204.jpeg

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

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

amitchandak
Super User
Super User

@Anonymous, Is the value just checking today's value vs yesterday's value. Or it like inventory , we need snapshot or rebuild

 

Appreciate your Kudos.

Anonymous
Not applicable

Hi Amit,

 

For Example the Company name toady is ABC CORP tom they may change the name of the company to XZY Limited.

 

i have written the measure in such a way that it will take the latest company name that they have defined in the config table.

 

Now i have a summary table and it should be filtered for the latest company name that will be the output of the Measure.

i cannot hard code the company name in the visual level filter.

 

Thanks in Advance 

Hema

nvprasad
Solution Sage
Solution Sage

Hi,

Yes, you can for the table visual. in the advanced filter condition, you can pass the condition on the top of the measure.

 

Ex: Measrue1 values > 0  apply filter

 

Appreciate a Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂

Regards,
N V Durga Prasad

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.