Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
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
Solved! Go to Solution.
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
If that helps, please mark this as a solution
BR
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
If that helps, please mark this as a solution
BR
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
78 | |
63 | |
52 | |
47 |
User | Count |
---|---|
212 | |
82 | |
61 | |
60 | |
58 |