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
heygowtam
Helper II
Helper II

Measure for Performance by Category

I have a Table, of three Columns 
Sales, Brand, Date 

I am looking For a Measure, Which Gives me 


1) Percentage of "Call and Usage Sales" for the Current Year 
2) Percentage of "Call and Usage Sales " For the Previous Year

3) I am using a Card visual, if there is any change in Percentage, Card should be able to show the Difference 

 

Screenshot (90).png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@heygowtam , You can have measures like

 

%= Divide( calculate(Sum(Table[Sales]), filter(Table, Table[Category]= "Call and Usage Sales")) , Sum(Table[Sales]))

 

or

 

%= Divide( calculate(Sum(Table[Sales]), filter(Table, Table[Category]= "Call and Usage Sales")) , calculate(Sum(Table[Sales]), allselected()))

 

then with help from a date table and TI

 

Year behind %= CALCULATE([%],dateadd('Date'[Date],-1,Year))


Year behind %= CALCULATE([%],SAMEPERIODLASTYEAR('Date'[Date]))

 

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-bd52912a5b...

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@heygowtam , You can have measures like

 

%= Divide( calculate(Sum(Table[Sales]), filter(Table, Table[Category]= "Call and Usage Sales")) , Sum(Table[Sales]))

 

or

 

%= Divide( calculate(Sum(Table[Sales]), filter(Table, Table[Category]= "Call and Usage Sales")) , calculate(Sum(Table[Sales]), allselected()))

 

then with help from a date table and TI

 

Year behind %= CALCULATE([%],dateadd('Date'[Date],-1,Year))


Year behind %= CALCULATE([%],SAMEPERIODLASTYEAR('Date'[Date]))

 

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-bd52912a5b...

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.