Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
dodgun
Frequent Visitor

Multiple date columns when values are shown on rows

I'm trying to mimic this table:

 

1.png

 

Column 1: 2018 current month
Column 2: 2019 current month
Column 3: 2018 YTD (in 2018)
Column 4: 2019 YTD

 

So far I have this:

2.png

I've enabled 'show on rows' to get the values to show as rows, but am missing the columns piece. If I use the date and filter, it doesn't achieve what I'm looking for. If I use a measure it is limited to 1 KPI (sales, spend, etc).

 

Is there any way to do this? Thank you.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @dodgun ,

The simplest way is enter to query editor and do unpivot columns feature on date fields which you mentioned.

Unpivot columns (Power Query)

Then you can use original row field, unpivoted attribute fields and value field to create a matrix visual.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @dodgun ,

The simplest way is enter to query editor and do unpivot columns feature on date fields which you mentioned.

Unpivot columns (Power Query)

Then you can use original row field, unpivoted attribute fields and value field to create a matrix visual.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.