Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Can I use in a direct query a formula as a date filter (date is returned by a dax formula?
Is it possible to share sample data and your expected result.
Proud to be a Super User! | |
What is the usae of date filter?
Date filter DAX for measure?
Proud to be a Super User! | |
I tried to use the formula below:
AntStock502W_Branch1 =
CALCULATE(
SUMX('Stock_Diary_502_Branch_1',[ESTOQUE_DIARIO_502_1] ),
FILTER( 'Estoque_Diario_502_Filial_1', [DATA] = [DataEstoqAnt502_Filial1])) where DataEstoqAnt402_Filial1 is a dax formula that returns the last date that had movement. , but the formula is returning the wrong value.
In principal what you're trying to do is fine. I suspect the reason you're getting wrong values is that your measure
is being evaluated in the context of each row in your filter table (measures force a
context transition.) Depending on what result you're trying to achieve you want to read the value into a variable earlier on to fix it. As @PijushRoy suggests can you share a sanitised pbix file?
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |