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.
I am new to POWER Bi. i want to calculate the MAT(Moving Annual Total) . I got result using below calculation in Table Fotmat.
MAT (moving annual total) = CALCULATE(
SUM(toal),
DATESINPERIOD(date_field,LASTDATE(date_field),-1,YEAR)
)
But i want result in below.using the above calculation i got wrong answer in matrix format. Please any one help me to get right answer in below format
Solved! Go to Solution.
Hi @Elakiya,
Please create a calculated column using the formula.
Month =
SWITCH (
MONTH[Date],
1, "January",
2, "February",
3, "March",
4, "April",
5, "May",
6, "June",
7, "July",
8, "August",
9, "September",
10, "October",
11, "November",
12, "December",
"Unknown month number"
)
Then create a matrix visual, put [Month] as Column level(highlighted in yellow) as follows, product as Row level, other measure as value level, you will get expected result.
Best Regards,
Angelia
Hi @Elakiya,
Please create a calculated column using the formula.
Month =
SWITCH (
MONTH[Date],
1, "January",
2, "February",
3, "March",
4, "April",
5, "May",
6, "June",
7, "July",
8, "August",
9, "September",
10, "October",
11, "November",
12, "December",
"Unknown month number"
)
Then create a matrix visual, put [Month] as Column level(highlighted in yellow) as follows, product as Row level, other measure as value level, you will get expected result.
Best Regards,
Angelia
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |