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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Aruljoy
Helper II
Helper II

FiIlter rows in Table visual based on value for a member - Power BI

 

Hi All,

I need to filter all member records if a member has test results = 3 in any one of the rows. I need to filter this at Measure level. Cause the table visual need to perform based on filter visuals.

Aruljoy_0-1609968430137.png

Thanks,

Arul Arockiam

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Aruljoy sorry here is revised measure

Measure 7 = CALCULATE ( COUNTROWS ( Mem ), ALLEXCEPT ( Mem, Mem[MemId] ), Mem[TestResults] = 3)


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

10 REPLIES 10
Ashish_Mathur
Super User
Super User

Hi,

Is the Testresults column already available in your source dataset?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

yes, it is already there in source dataset

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I have a date range filter. The measure is still calculating full rows from Dataset. Not from filtered records. Do you know how to fix it?

Not unless i see your file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

If I filter by test date, The measure has to calculate accordingly. The screen shot is below

Aruljoy_0-1610011062263.png

 

parry2k
Super User
Super User

@Aruljoy sorry here is revised measure

Measure 7 = CALCULATE ( COUNTROWS ( Mem ), ALLEXCEPT ( Mem, Mem[MemId] ), Mem[TestResults] = 3)


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thank you.. But I got a new issue. this measure breaking joins.. Can you help me how to fix it?

Aruljoy_0-1609971310730.png

parry2k
Super User
Super User

@Aruljoy add a new measure and filter on this measure where measure value is not blank

 

Filter Visual = 
CALCULATE ( COUNTROWS ( Table ), ALLEXCEPT ( Table, Table[MemId] ) )

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks for the response Parry2K. But I need to check if member has test results = 3 in anyone of the row

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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