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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
YunJ
Post Prodigy
Post Prodigy

How to exclude other rows I don't want?

Hi,

I wrote a measure.

When slicer Category="Makeup", the Store would be MNY, 3CE, LRL MU.

Capture.PNG

When slicer Category="Skincare", the Store would be LRL FSS, MG, SGMB.

Capture2.PNG

Then I want to rank them from all the store names, so I wrote a RANKX measure as following.

The problem is, the rank numbers for those 3 stores per category are correct, but why other stores also show here? 

Is there any solution to exclude other stores?

Capture3.PNGCapture4.PNG

 

Thanks a lot for your time!

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @YunJ ,

 

Try to create a measure and apply it in the visual level filter.

if(not(isblank(measure))),1,0)

test_visual_level_filter5.PNG

 

Best Regards,
Liang
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

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Hi @YunJ ,

 

Try to create a measure and apply it in the visual level filter.

if(not(isblank(measure))),1,0)

test_visual_level_filter5.PNG

 

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

Hi @V-lianl-msft 

It seems like I can simply put "measure is not blank" to the Filter Pane. 

Thanks a lot for your solution!

Capture.PNG

amitchandak
Super User
Super User

@YunJ , Try like

measure = calculate(sum(Blue[GV]), filter(Blue,
(Blue[Category]="Makeup" && Blue[Store] in {"MNY", "3CE", "LRL", "MU"}) ||
(Blue[Category]="Skincare" && Blue[Store] in {"LRL", "FSS", "MG", "SGMB"})
))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

Thanks for your reply.

Actually the Category is in Category table, and the Store is in Store table. I made relationships for those two and the blue table.

 

Also, I already successfully wrote a sum(GMV) measure, only cannot write a RANKX measure for the selected Category and Store.

 

Thanks for your time.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors