Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.