Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Experts
I am struggling to get the previous month DAX Measure to Work in DQ Mode. My measure is
Internet Sales last Month = CALCULATE( [Internet Sales], PARALLELPERIOD( DimDate[FullDateAlternateKey], -1, MONTH) )
The measure is not returning back any values
Solved! Go to Solution.
@Anonymous As @aj1973 stated, TI functions have limitations with DQ, which is one of the reasons I find them generally useless. You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
In your case, you could get previous month this way:
Internet Sales last Month measure =
VAR __Date = MAX('DimDate'[FullDateAlternateKey])
VAR __LastMonthEnd = EOMONTH(__Date,-1)
VAR __LastMonthBegin = DATE(YEAR(__LastMonthEnd),MONTH(__LastMonthEnd),1)
RETURN
CALCULATE(
[Internet Sales],
DimDate[FullDateAlternateKey] >= __LastMonthEnd,
DimDate[FullDateAlternateKey] <= __LastMonthBegin
)
@Anonymous As @aj1973 stated, TI functions have limitations with DQ, which is one of the reasons I find them generally useless. You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
In your case, you could get previous month this way:
Internet Sales last Month measure =
VAR __Date = MAX('DimDate'[FullDateAlternateKey])
VAR __LastMonthEnd = EOMONTH(__Date,-1)
VAR __LastMonthBegin = DATE(YEAR(__LastMonthEnd),MONTH(__LastMonthEnd),1)
RETURN
CALCULATE(
[Internet Sales],
DimDate[FullDateAlternateKey] >= __LastMonthEnd,
DimDate[FullDateAlternateKey] <= __LastMonthBegin
)
Hi @Anonymous
In DQ mode there are limitations, like using Time Intelligence functions, please take a look at this comparison.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hi Amine - It must be possible to compute the Previous Value by alternative means???
User | Count |
---|---|
75 | |
74 | |
44 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |