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

Filter in calculation

Hi, I wrote a measure as following. only filtered Category-L1, but the result doesn't match the excel file...

Capture.PNG

1 ACCEPTED SOLUTION

@YunJ ,

 

This answer may answer your question.

 

Community Support Team _ Jimmy Tao

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

9 REPLIES 9
Tahreem24
Super User
Super User

@YunJ ,

 

As per your screen shot, Brand and Category_FLag columns are filtered in Excel. And you only applied Category_Flag filter in your measure. Perhaps, that's why your answer is not matching.

 

You can either add Brand="3CE" in your measure along with Category_flag or clear Brand filter from excel and see the result.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hi @Tahreem24 

What I compared in the screenshot is about 3CE no matter in excel or table in Power bi.

Please check my previous reply which is with pbix file. 

 

Thanks a lot for your help!1

@YunJ ,

It gives blank page. Not able to download PBIX.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

@Tahreem24 Would you please try this one?

https://www.dropbox.com/s/6tbhfs1b4dlt09q/0520.pbix?dl=0

the first dashboard.

 

Thanks a lot for your patience!

@YunJ ,

 

This answer may answer your question.

 

Community Support Team _ Jimmy Tao

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

 

 

Hi @Tahreem24 

May I know what's the difference between these two measures?

Capture.PNG

Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @amitchandak @Greg_Deckler 

Thanks for your reply. Please find my pbix file https://www.dropbox.com/s/sl0jjt513igil8v/0519%281%29.pbix?dl=0

Measure 2 is what I want. But i'm wondering what is the difference between measure 1 and 2. Why they have different result?

Thanks a lot for your help!!!

Capture.PNGCapture2.PNG

amitchandak
Super User
Super User

@YunJ , can not say without looking at data.

Can you share sample data and sample output.

 

Just check that non filtered data and the number of rows is matching. This means no data load issue. If they are not matching the check if there is a data load issue

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

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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