Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
My goal is to sum up three different wage distribution containers, with a filter for both the year, and the geography. Including the year was no problem. However, including the geography too, broke the filter. OR only accepts two arguments, so I'm unsure how to add three, or even more filters.
Under 30k =
CALCULATE(
SUM('Wage Distribution'[Total Population]),
FILTER (
'Wage Distribution',
OR(OR (
'Wage Distribution'[Wage Bin]="< $10K",
'Wage Distribution'[Wage Bin]="$10-20k"),
'Wage Distribution'[Wage Bin]="$20-30k",
)
&& 'Wage Distribution'[ID Year]=2018
&& 'Wage Distribution'[Geography]="Florida"
)
)
How do I add in 'Wage Distribution'[Geography]="Florida", or even, another filter after that?
Hi @Anonymous,
It seems like you are try to do rolling calculations based on a text field.
In my opinion, I'd like to suggest you add a calculated field to extract the 'bin range'(numeric type) from the text value field.
Then you can use simple conditions in your formula for cumulative calculations without broken/effect on filters and your records.
Regards,
Xiaoxin Sheng
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@Anonymous , try like
Under 30k =
CALCULATE(
SUM('Wage Distribution'[Total Population]),
FILTER (
'Wage Distribution',
'Wage Distribution'[Wage Bin] in {"< $10K","$10-20k","$20-30k"}
&& 'Wage Distribution'[ID Year]=2018
&& 'Wage Distribution'[Geography]="Florida"
)
)
Hi @Anonymous ,
Try IN instead of OR
Under 30k =
CALCULATE (
SUM ( 'Wage Distribution'[Total Population] ),
FILTER (
'Wage Distribution',
'Wage Distribution'[Wage Bin]
IN {
"< $10K",
"$10-20k",
"$20-30k"
}
&& 'Wage Distribution'[ID Year] = 2018
&& 'Wage Distribution'[Geography] = "Florida"
)
)
Else use ||
Regards,
Harsh Nathani
Excellent response, not wise who accepted the IN function in DAX, that is very functional. You have opened up the picture for me. Thank you very much, excellent contribution.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |