Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello all!
I am having trouble comparing different years in the KPI visual. When I select Month and Years that are in the same year, the KPI visual shows the current information as shown in this screenshot.
However, when comparing Month Years that go across different years (2019 vs. 2020), the KPI visual only shows data for 2020.
I have the trend axis set to Year. Is there a way for me to add something like a "Century" column in my Date table which would allow me to compare 2019 and 2020 data in the same KPI visual? Currently, it only shows data for the most recent year (2020).
Current KPI setup:
Alternatively, are there any custom KPI visuals that allow me to skip the trend axis and just compare the raw numbers of Total Form Fills & Previous Period Form Fills? I am not interested in the trend visual in the KPI, just the comparison of the 2 numbers and the % difference of these numbers. I also like how the number is green if the Form Fills are greater than the Previous Period Form Fills and red if it is lower than the Previous Period Form Fills.
Thanks in advance for your suggestions!
Solved! Go to Solution.
amitchandakk , I have decided to create a "Start of Century Column in my date table by using a SWITCH function.
Start of Century = SWITCH(
Date_tbl[Year],
2016,2000,
2017,2000,
2018,2000,
2019,2000,
2020,2000,
2021,2000,
2022,2000,
2023,2000,
2024,2000,
2025,2000,
0
)
This allows me to compare my month years across different years.
Like this:
@Anonymous , if these are continuous month you should be able to do with time intelligence and date table
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last MTD (complete) Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-1,MONTH))))
diff = [MTD Sales]-[last MTD Sales]
diff % = divide([MTD Sales]-[last MTD Sales],[last MTD Sales])
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184
Appreciate your Kudos.
amitchandakk , I have decided to create a "Start of Century Column in my date table by using a SWITCH function.
Start of Century = SWITCH(
Date_tbl[Year],
2016,2000,
2017,2000,
2018,2000,
2019,2000,
2020,2000,
2021,2000,
2022,2000,
2023,2000,
2024,2000,
2025,2000,
0
)
This allows me to compare my month years across different years.
Like this:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
96 | |
78 | |
68 | |
55 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |