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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Use Column headers as slicer

Hello to all,

 

I am new here and was wondering if someone could help me.

 

Power bi hilfe.PNG

I have a table in Excel, that looks like the screenshot below. The table has more than 4000 rows.

I would like to make a slicer in Power bi to be able to select the month, the sum (Gesamtergebnis), FBEREICH and var/fix  but with this structure it does not work. So I tried the funktion unpivot. I selected the columns which I want to have in a slicer and click on unpivot selceted columns. It looks good, the values are wrong. I do not know why.

 

I also tried it with a smaller test table ( only 4 rows) with the same structure and it works. The values are correct.

 

Maybe someone could help me or give me another approach?

 

Thank you! 

 

 

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

I did a test, you can use unpivot column only for the month column in powrbi query, and then filter out the data corresponding to the month.

v-henryk-mstf_0-1623054563666.png

v-henryk-mstf_1-1623054603913.png

v-henryk-mstf_2-1623054734503.png


If the problem is still not resolved, can you provide a test data model (delete sensitive information) so that I can answer it for you as soon as possible. Looking forward to your reply.

Best Regards,
Henry

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

I did a test, you can use unpivot column only for the month column in powrbi query, and then filter out the data corresponding to the month.

v-henryk-mstf_0-1623054563666.png

v-henryk-mstf_1-1623054603913.png

v-henryk-mstf_2-1623054734503.png


If the problem is still not resolved, can you provide a test data model (delete sensitive information) so that I can answer it for you as soon as possible. Looking forward to your reply.

Best Regards,
Henry

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @v-henryk-mstf,

 

thank you for your answer. I think I found the issue.

I had some errors and no data in table, after replacing the errors with a 0 I got the correct values.

 

Maybe you have some advice for me, how to replace the errors and cells without data, to get a correct unpivot table.

 

Thank you and best regards,

 

Albert

ERD
Community Champion
Community Champion

Hi @Anonymous ,

You need to choose all month-related columns (JAN - DEZ) and then Unpivot them. Your sum (Gesamtergebnis) will be counted in the report (by a measure or implicitly). 

If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Anonymous
Not applicable

Hi @ERD.

 

unfortunately it shows me still the wrong values.  There are no formulas in the table, so this can also be excepted.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors