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,
I have a dataset as given below
ID | PREVIOUS MONTH SALES | CURRENT MONTH SALES |
A | 123464 | 4555556 |
B | 466445 | 5555555 |
and I have to create a table chart as the following
ID | September Sales | October sales |
A | 123464 | 4555556 |
B | 466445 | 5555555 |
or month name should add to column header.
Any help will be appreciated.
Thanks in Advance.
Solved! Go to Solution.
You may use the following DAX to add a new table and then use the Matrix visual.
Table2 = UNION ( SELECTCOLUMNS ( Table1, "ID", Table1[ID], "Attribute", DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ) - 1, 1 ), "Value", Table1[PREVIOUS MONTH SALES] ), SELECTCOLUMNS ( Table1, "ID", Table1[ID], "Attribute", DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ), "Value", Table1[CURRENT MONTH SALES] ) )
You may use the following DAX to add a new table and then use the Matrix visual.
Table2 = UNION ( SELECTCOLUMNS ( Table1, "ID", Table1[ID], "Attribute", DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ) - 1, 1 ), "Value", Table1[PREVIOUS MONTH SALES] ), SELECTCOLUMNS ( Table1, "ID", Table1[ID], "Attribute", DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ), "Value", Table1[CURRENT MONTH SALES] ) )
@Hanuma_Srikiran well do you have a date table with the month names?
Proud to be a Super User!
yes i have
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |