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
raicardi
Frequent Visitor

Year over Year Data table and cluster chart

I am trying to create a YoY table and chart based on the below data. When I follow other suggestions, i am not getting the results I need, no matter what date in the fields I am choosing. 

raicardi_0-1663106671366.png

raicardi_1-1663106700278.png

Sample data below. I am trying to show incidents YoY, and eventually compared vs previous years months, quarters, etc.

 

https://docs.google.com/spreadsheets/d/182ShbgQ7-og_tigZF5T_ewvbuSYFfbzOfwVSx8NvQEU/edit?usp=sharing

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @raicardi , 

You can do that with the DATEADD function

Step 1: Clean your excel Data >> On the date column Find and replace 0:00 with blank
Step 2: Load your excel to Power Bi
Step 3: Create a new measure

Count of Index LY = 

CALCULATE(
    COUNT(Sheet1[Count of INCIDENT]),
    DATEADD(Sheet1[DATE],-1,YEAR)
)


Step 4 : Visualize

Dax_Noob_0-1663111741946.png

If that helps, please mark this as a solution

BR

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @raicardi , 

You can do that with the DATEADD function

Step 1: Clean your excel Data >> On the date column Find and replace 0:00 with blank
Step 2: Load your excel to Power Bi
Step 3: Create a new measure

Count of Index LY = 

CALCULATE(
    COUNT(Sheet1[Count of INCIDENT]),
    DATEADD(Sheet1[DATE],-1,YEAR)
)


Step 4 : Visualize

Dax_Noob_0-1663111741946.png

If that helps, please mark this as a solution

BR

 

 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.