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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
cm99
New Member

filtering

I have a set of data which I want to filter by month, so it shows a snapshot for the month for entities however shows the latest grading. So all entities for April 2021 however latest grading which could have been in April 2020.  so in the image below if i filter on March 21 table on left then I want entity A and the latest grading of Good from table on the right to show in the dashboard. 

 

IMG-4595.jpg

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @cm99 ,

 

Create a measure as below:

Measure = 
var _entity=CALCULATE(MAX('Table1'[Entity]),FILTER('Table1','Table1'[Month]=SELECTEDVALUE(Table1[Month])))
Return
IF(MAX('Table2'[Entity])=_entity,1,0)

Then put the measure in the filter pane and select is 1:

vkellymsft_0-1625126106774.png

And you will see:

vkellymsft_1-1625126122797.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

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

View solution in original post

1 REPLY 1
v-kelly-msft
Community Support
Community Support

Hi @cm99 ,

 

Create a measure as below:

Measure = 
var _entity=CALCULATE(MAX('Table1'[Entity]),FILTER('Table1','Table1'[Month]=SELECTEDVALUE(Table1[Month])))
Return
IF(MAX('Table2'[Entity])=_entity,1,0)

Then put the measure in the filter pane and select is 1:

vkellymsft_0-1625126106774.png

And you will see:

vkellymsft_1-1625126122797.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.