March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Team,
If someone can can help me with below issue.
I am trying to Calculate Previos Quarter , Previous Month. Issue is for Previous Quater, Prev Month it should give me 2022 Q4 values but with below dax, its not understanding to go to previous year
Below DAX works from Feb to Dec and doesnt work for Jan , as it doesnt understand to go to 2022 Dec month
hi @pmadam
try to join your table with a qualified date table and utilize Time Intelligence Functions like DATEADD
for previous month,
CALCULATE(
...,
DATEADD(DateTable[Date], -1, MONTH)
)
for previous quarter, DATEADD(DateTable[Date], -3, MONTH)
But this works only when there is some Year or Quarter selection in slicers. But i want without any selections of slicers from date.
I get "dateadd expects a contiguous selection" error msg if i do not make any date selections or add Year ot Quarter to the table. And i have one - many directional tables.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
27 | |
17 | |
16 | |
12 | |
11 |
User | Count |
---|---|
37 | |
29 | |
26 | |
20 | |
16 |