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! Learn more

Reply
Pbiuserr
Post Prodigy
Post Prodigy

How to modify that measure to be for more than single column?

Hello,

I've got a measure like down below which let's me compare values from two categories if I use two slicers from separate tables

 

SalesAmountComparison = CALCULATE( [SalesAmount],  FILTER(ALL(Fct_Tbl[Category]), Fct_Tbl[Category] IN ALLSELECTED('New Fct_Tbl'[Category] ) )

 

I'd like to add to that measure couple of other columns, like Country, Brand, Color but don't know how to insert it properly into the measure or if its possible. Or do I need to create separate for each and then SWITCH(True()) ?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Pbiuserr ,

 

You could use multiple FILTER() functions in CALCULATE() function.

Like:

CALCULATE(<expression>[, <filter1> [, <filter2> [, …]]])

 

Best Regards,

Jay

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Pbiuserr ,

 

You could use "&&" or "||".

"&&" means and, "||" means or.

For example:

calculate(sum(column),filter(table,conditon1&&condition2&&condition3))

If I misunderstood your meaning, please share more details.

 

Best Regards,

Jay

Hi,

If it concerns one table then its fine, but my each filter would be from different table

Anonymous
Not applicable

Hi @Pbiuserr ,

 

You could use multiple FILTER() functions in CALCULATE() function.

Like:

CALCULATE(<expression>[, <filter1> [, <filter2> [, …]]])

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Pbiuserr , if they are two fact tables then you join to create a common dimension and join with facts for filter

refer if  my blog on the same can help

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

 

 

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