Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
HI - Please help so I know I'm not losing my mind, I've been working with DAx for years now and for some reason I can't understand why it is giving me a value against Opex when I have exclusivly applied a filter in caluclate to not sum Opex rows
My DAX is simply:
Solved! Go to Solution.
Hi @mmahachi2
Please try the below measure:
thank you that worked using the filter - but is that new I was sure i've used without filter and didn't see values for rows that were filtered out in calculate, especially if only showing fields from that single table in the visual.
Hi @mmahachi2 ,
Filter is not new. I have been using in the same scenario from last many years 🙂.
ha! not a new function but a change in the functionality - as I don't recall needing to have the filter fundtion defined within calculate, except in the more complex scenarios like measures that may need to combine calculations across many tables for example. anyway just seemed very odd.
Hi @mmahachi2
Please try the below measure:
Hi @mmahachi2
Please check the below result.
I hope this is what you wanted.
If my post helps please give kudos and accept it as a solution!
Thanks
That's the classic example in https://www.sqlbi.com/articles/introducing-calculate-in-dax/
This is the short syntax but it really represents
CALCULATE (
SUM(netsuite[debit],
FILTER (
ALL ( Netsuite[Budget Source] ),
Netsuite[Budget Source] = "Red"
)
)
The filter gets replace by the red filter.
--
For your required solution, you need KEEPFILTERS
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 49 | |
| 44 | |
| 43 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 74 | |
| 71 | |
| 34 | |
| 33 | |
| 31 |