Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vaibbandge
Frequent Visitor

how to show the difference between the amounts of two quarters which I select from slicer

Hello team,

 

I am new to Power BI DAX, and I wants to show the differerence between the amount of 1 quarter with another.

If suppose I select Q1 2021 and Q2 2021 from my Quarter slicer then results should come like below-

 

Product DescriptionQ1 2021
($000)
Q2 2021
($000)
$ Change
($000)
% Change
A$67,957$67,726($231)0%
B$27,716$26,050($1,666)-6%
C$7,692$9,275$1,58321%
D$6,974$7,863$88813%

 

 

Below is my sample data -

Product NameQuarterYearINVOICEDATEChargeAmount
AQ1 20212/28/20217126816.01
AQ2 20215/31/20216054198.33
BQ2 20214/30/20215879113.68
BQ1 20211/31/20215293888.03
CQ2 20216/30/20214904149.4
AQ1 20213/31/20214372781.54
BQ1 20211/5/20213754678.19
DQ1 20213/29/20213577814.64
EQ2 20216/29/20213286894.5

 

Any help is much appreciated...!

2 REPLIES 2
vaibbandge
Frequent Visitor

Hi @amitchandak ,

thanks for reply ..!

I tried the measure which you sent but it doesnt work for me. can you please create pbix file for the sample data which I sent in my 1st post and sent me that pbix file so that I can refer it in my desktop .

 

amitchandak
Super User
Super User

@vaibbandge , a measure like

 


Measure =
VAR _max = MAXX(allselected('Date1'),'Date1' [Qtr Year]) // prefer to have column Year Qtr in table and use that here, ui you can use Qtr Year
var _min = MinX(allselected('Date1'),'Date1' [Qtr Year])
return
calculate(sum(Table[value]), filter(('Date') , 'Date1' [Qtr Year] = _max )) - calculate(sum(Table[value]), filter(('Date') , 'Date1' [Qtr Year] =_min ))

 

 

I assumed use of date table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.