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

What is wrong with my filter?

Filter function.PNG

 

I want that only data from china is shown. I need this in calculation. TrackET [Country] is in my dataset but why is it grey?

Thank you for your time

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous  you need to use calculate function for this to work effectively

Measure = calculate(TOTALYTD(sum(Orders[Sales]),Orders[Order Date],Orders[Product Category]="Furniture"))

Replace the bold column names with respect to your data

Hope it resolves your issue? Please consider accepting it as the solution to help the other members find it more quickly.


Appreciate your Kudos, Press the thumbs up button!!👍

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous  you need to use calculate function for this to work effectively

Measure = calculate(TOTALYTD(sum(Orders[Sales]),Orders[Order Date],Orders[Product Category]="Furniture"))

Replace the bold column names with respect to your data

Hope it resolves your issue? Please consider accepting it as the solution to help the other members find it more quickly.


Appreciate your Kudos, Press the thumbs up button!!👍

amitchandak
Super User
Super User

@Anonymous , Filter is outside totalytd, It should after "9/30"  before ")"

 

or add "calculate(" at start and ")" at the end

 

Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.

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