Join 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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello, with my first question here I had bitten of a lot more that I could chew, so today I am asking about a smaller step in my DAX learning process.
I try to calculate a First Order Date from an Invoices table.
This is my calendar DAX:
DateTable = ADDCOLUMNS(CALENDARAUTO(), "MonthNo", MONTH([Date]), "MonthName", FORMAT([Date],"MMMM"), "Quarter", QUARTER([Date]),
"Year", YEAR([Date]), "Day", DAY([Date]), "WeekdayNum", WEEKDAY([Date]), "WeekdayName",FORMAT([Date],"DDDD"), "YearMonth", FORMAT([Date], "YYYY-MM"), "YearQuarter", FORMAT([Date], "YYYY-Q"))
So far, I have tried a few variations. At the moment, I have tried this code:
FirstOrderDate = CALCULATE(MIN('invoices_2019-2022'[Date Initiated]),
ALL(DateTable[Date]))
That works fine as long as I have not selected any quarter in the slicer.
Yet, as soon as I select a YearQuarter, the results change, and I get the First Order Date in the context of the slicer, despite the ALL function.
Before, I had tried this:
FirstOrderDate = CALCULATE(MIN('invoices_2019-2022'[Date Initiated]),
REMOVEFILTERS(DateTable[Date]))
Same result.
As you can probably tell, I have about a 5-year-old's underdstanding of DAX, so please explain in a simple way.
Thanks a lot.
Solved! Go to Solution.
Looks like the solution was pretty simple - I need to use REMOVEFILTERS on the whole table, not just the [Date] column:
That did the trick.
Looks like the solution was pretty simple - I need to use REMOVEFILTERS on the whole table, not just the [Date] column:
That did the trick.
Vote for your favorite vizzies from the Power BI World Championship submissions!
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 |
|---|---|
| 7 | |
| 5 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 12 | |
| 5 | |
| 5 |