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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
henry24007
Helper I
Helper I

question about power query

how can I make table 1 to table 2?

1.

1234

 

2.

ab
12
34
2023 data?2023 data?

 

also, if first a and b is 2021 dataset,  and second a and b is 2022 dataset, and I will add 2023 dataset, what opreation do I need so that I can have a year slicer in my report?

 

look like below:

year slicer
2021
2022
2023

 

a and b slicer
a
b

 

 

the report outcome:  

a
1
1 ACCEPTED SOLUTION
rohit_singh
Solution Sage
Solution Sage

Hi @henry24007 ,

You will need to perform the unpivot all columns operation in power query. This will ensure that any other columns that you add will also be included in the operation after every refresh.

rohit_singh_0-1655711249972.png

Please note that two columns cannot have the same name, so Power query will append a suffix automatically. You can simply perform a replace operation to remove the suffix.

rohit_singh_1-1655711352701.png

You can then use the attribute column as the slicer in your report.

As for year, you either need to include that as a separate column in your dataset, or add a conditional column based on certain rules to map each row to a year.

Kind regards,

Rohit


Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

View solution in original post

1 REPLY 1
rohit_singh
Solution Sage
Solution Sage

Hi @henry24007 ,

You will need to perform the unpivot all columns operation in power query. This will ensure that any other columns that you add will also be included in the operation after every refresh.

rohit_singh_0-1655711249972.png

Please note that two columns cannot have the same name, so Power query will append a suffix automatically. You can simply perform a replace operation to remove the suffix.

rohit_singh_1-1655711352701.png

You can then use the attribute column as the slicer in your report.

As for year, you either need to include that as a separate column in your dataset, or add a conditional column based on certain rules to map each row to a year.

Kind regards,

Rohit


Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.