Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello all,
I have what i feel should be easy problem to solve but my DAX isn't working. I have a table that I would like to add a column that returns the sum of a column filtered. Can I do that?
| Month | Region | Zone | Market | Customer | Orders (for month) | Total Orders (Market) | Ratio |
| Jan | Texas | Texas - North | Dallas | Bob's ER | 5 | 5 | 1.0 |
Jan | Texas | Texas - South | Houston | Tom's ER | 5 | 12 | .42 |
| Jan | Texas | Texas - South | Houston | First ER | 7 | 12 | .58 |
| Feb | Texas | Texas - North | Dallas | Bob's ER | 8 | 10 | .8 |
Feb | Texas | Texas - North | Dallas | Nice ER | 2 | 10 | .8 |
| Feb | Texas | Texas - South | Houston | First ER | 5 | 5 | 1.0 |
Solved! Go to Solution.
I figured it out through measure. The only problem is I can't (yet) roll up through the hierachy becasue of the filter context.
I figured it out through measure. The only problem is I can't (yet) roll up through the hierachy becasue of the filter context.
Thanks for your help! It doesn't look like the dax for the Total Patients (Market) is working it is suming all. What do you think?
You can write the following measures to get your values.
Order Amount = SUM ( 'Table'[Orders (for month)] )Total Orders (Market) =
CALCULATE (
[Order Amount],
ALLEXCEPT ('Table','Table'[Month],'Table'[Market] )
)Ratio =
DIVIDE ( [Order Amount], [Total Orders (Market)] )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!