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.
DAX
Solved! Go to Solution.
Salam @Anonymous
This will return the desired result under the 2nd date
Difference =
VAR PreviousDate =
MAX ( 'last month GL summary'[MIS_DATE] ) - 1
VAR CurrentDateValue =
SUM ( 'last month GL summary'[USD_currency] )
VAR PreviousDateValue =
CALCULATE (
SUM ( 'last month GL summary'[USD_currency] ),
'last month GL summary'[MIS_DATE] = PreviousDate
)
RETURN
CurrentDateValue - PreviousDateValue
Salam @Anonymous
This will return the desired result under the 2nd date
Difference =
VAR PreviousDate =
MAX ( 'last month GL summary'[MIS_DATE] ) - 1
VAR CurrentDateValue =
SUM ( 'last month GL summary'[USD_currency] )
VAR PreviousDateValue =
CALCULATE (
SUM ( 'last month GL summary'[USD_currency] ),
'last month GL summary'[MIS_DATE] = PreviousDate
)
RETURN
CurrentDateValue - PreviousDateValue
Thanks a lot, I fixed the equation but I still have another problem , I don't want to show the columns with Differences zero I only want to show the final difference in the matrix, Is there a solution for that?
@Anonymous
Easiest way is to hide it simply using your mouse - reduce the column width to zero
Yes, but unfortunately when changing the date slicer , the columns appear again, I thought maybe creating two visuals and grouping them, if there is a better solution I would appreciate it Thanks 🙂
@Anonymous
If you find my reply helpful kindly consider marking it as accepted solution.
@Anonymous
Excellent idea 👍
@Anonymous , if you try Day on day diff you should use date table
example
This Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
Last Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Last Day = CALCULATE(sum('Table'[Qty]), previousday('Date'[Date]))
diff =[This Day] - [Last Day]
Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c3243d1f9
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
7 |