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
bw70316
Helper V
Helper V

Filter by Male/Female when just given Numbers

I have a list of months for the last FY which includes totals for Men/Women for each month. When I try to filter by just one or the other, I see no changes in my data because the totals are related to the month in question. For example, when I do a list and click on that number, it highlights the coorresponding month for that number. Is it possible, with just numbers, to filter by gender?

1 ACCEPTED SOLUTION
DaFloDo
Resolver I
Resolver I

hi @bw70316,

 

you could try the "UNPIVOT" function in power query when the data is loaded

 

 

2018-09-21 18_36_59-.png2018-09-21 18_38_06-Unbenannt - Power Query-Editor.png

 

 

another way would be using DAX to try like here

https://stackoverflow.com/questions/50213905/is-it-possible-to-unpivot-in-power-bi-using-dax

 

 

 

best regards 

 

florian

 

View solution in original post

4 REPLIES 4
bw70316
Helper V
Helper V

Query.png

 

 

So I am trying to take this data and filter it my Male and Female. These are totals. I am assuming this can be done in some way, or would I need the original data to illustrate male/female. Sorry for the poor post above, I was in hurry for a meeting

So, you would want to unpivot those columns as suggested by @DaFloDo


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
DaFloDo
Resolver I
Resolver I

hi @bw70316,

 

you could try the "UNPIVOT" function in power query when the data is loaded

 

 

2018-09-21 18_36_59-.png2018-09-21 18_38_06-Unbenannt - Power Query-Editor.png

 

 

another way would be using DAX to try like here

https://stackoverflow.com/questions/50213905/is-it-possible-to-unpivot-in-power-bi-using-dax

 

 

 

best regards 

 

florian

 

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.