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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Krist1
New Member

How to compare the difference of the total sales for the years as shown in the table 2013,2017,2021?

Power BI.PNG

 

I want to create a card that shows the difference between 2021 and 2017 for example. There are no inbetween years

1 ACCEPTED SOLUTION
komald
Helper I
Helper I

hi @Krist1 

you can create measure 
sale 2013= calculate(sum(sale), year=2013)
sale 2017= calculate(sum(sale), year=2017)
sale 2021= calculate(sum(sale), year=2021)


after this for comparison , write  measure
compare 2013-2017= sale 2017-sale 2013.
compare 2017-2021= sale 2017-sale 2021
and these measure u can show on cards

View solution in original post

2 REPLIES 2
komald
Helper I
Helper I

hi @Krist1 

you can create measure 
sale 2013= calculate(sum(sale), year=2013)
sale 2017= calculate(sum(sale), year=2017)
sale 2021= calculate(sum(sale), year=2021)


after this for comparison , write  measure
compare 2013-2017= sale 2017-sale 2013.
compare 2017-2021= sale 2017-sale 2021
and these measure u can show on cards

Thank you so much

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.