The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi !
I am new to Power BI.
I have 3 Period on my query.
I want to compare the differences between a period.
For example I have Last Year and Today Period , I want a line graph which show the differences between 2 of them.
My today period will be constant . Any guide will be helpful to me!
Solved! Go to Solution.
Thank you @amitchandak
I made 3 measure based on your example.
1.TODAY Measure use as base or constant
2. Measure that will be selected by slicer for
3. Differences based measure TODAY and measure selected by slicer.
I put all of the measure into the line chart and all display correctly.
@Anonymous , Ask is not very clear. But based on what I got. Measure with help from date tbale
example
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))
diff = [MTD Sales]-[last year MTD Sales]
diff % = divide([MTD Sales]-[last year MTD Sales],[last year MTD Sales])
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.
Thank you @amitchandak
I made 3 measure based on your example.
1.TODAY Measure use as base or constant
2. Measure that will be selected by slicer for
3. Differences based measure TODAY and measure selected by slicer.
I put all of the measure into the line chart and all display correctly.