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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
philsiqueira90
Frequent Visitor

Filter another visual using power query custom column

Hello everyone,

I have the following data: 

 

idnamecityage
0philipeserra32
1renildavila velha68
2lucianaserra38
3thiagovila velha38
4joaoserra60



Using the same table, I did another visual:

citybetween 30 and 40
serra2
vila velha1

 

This second column is a conditional column that I did using power query.

My goal is: When I select a row of the column "between 30 and 40" I want to return just the rows of these selected ages on the first visual, but when I do this select, the table is returning people with another age, per example: joao isn't supposed to be here:

Screenshot_2.jpg

It seems power bi doesn't recognized my custom column as a valid value or something, I really don't know what I'm doing wrong.

Any help is welcome! Thanks

 

1 ACCEPTED SOLUTION
vapid128
Solution Specialist
Solution Specialist

if you only want to see people between 30 and 40 on this page

Use the page filter.

 

If you want to see 20-30 30-40 40-50.... by a filter.

so you need a filter like

20-30

30-40

40-50

50-60

60-70

 

that means in the table, you need to group those people.

add colnum

 

Age Group = 

switch(true(),

table[age]<10,"0-10',

table[age]<20,"10-20',

table[age]<30,"20-30',

table[age]<40,"30-40',

table[age]<50,"40-50',

table[age]<60,"50-60',

"60+"

)

 

Use matrix table

CITY/AGE Group

View solution in original post

2 REPLIES 2
vapid128
Solution Specialist
Solution Specialist

if you only want to see people between 30 and 40 on this page

Use the page filter.

 

If you want to see 20-30 30-40 40-50.... by a filter.

so you need a filter like

20-30

30-40

40-50

50-60

60-70

 

that means in the table, you need to group those people.

add colnum

 

Age Group = 

switch(true(),

table[age]<10,"0-10',

table[age]<20,"10-20',

table[age]<30,"20-30',

table[age]<40,"30-40',

table[age]<50,"40-50',

table[age]<60,"50-60',

"60+"

)

 

Use matrix table

CITY/AGE Group

Thank you so much. it works like a charm.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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