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.
Hi All,
Requirement: We need to create a matrix visual which contains country on rows, Budget & Month on columns. As Year is a mandatory filter, matrix always shows data for one year.Refer the below structure to get more context about it.
Month | |||||||||
Country | Jan | Feb | Mar | April | May | ....... | Dec | Avg | YTD |
India | |||||||||
Pak | |||||||||
US | |||||||||
UK |
Need help of calculating Avg and YTD columns, these should be part of Month column. Could you please provide possible solutions for this.
Hi @Sunkari,
Need help of calculating Avg and YTD columns, these should be part of Month column.
I don't think there is an easy way to do this with the current Matrix visual.
I have tried to create a new table which contains the month name value, "Avg" and "YTD" like below. And create a relationship between the new table and the Date table with MonthName.
However, I was not able to figure out how to calculate Avg, YTD for each country, as there is no related country value for "Avg" and "YTD" in each Matrix row.
Measure = SWITCH ( FIRSTNONBLANK ( MonthTable[Month], 1 ), "Avg", [Avg] + 0, "YTD", "YTD", SUM ( Sales[Revenue] ) )
Just hope it can give you some hint.
Regards
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 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |