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
gauravnarchal
Post Prodigy
Post Prodigy

Filter result from each row and column

Dear All - I need help to create a measure to filter the result of each client and display the result in the table. Please let me know if this is possible.

 

Client 123, i want FF1, FF2 & FF3 only

Client 125, i want FF4, FF6 & FF6 only

Client 126, i want FF5, FF6, FF8 & FF9 only

 

DATA

 

Client NumberClient NameFF1FF2FF3FF4FF5FF6FF7FF8FF9
123ABC GroupXHJUYIL98768909909889  T78787  IUIO345  
123ABC GroupXHJUYIL98768907909887   H79798   
123ABC GroupXHJUYIL98768907909885      
125NCM Group   OJKIJIKL 37838WAGSGS  
126ACM GROUP    564456121288 UT6769QWA7979

 

Result to be displayed as below in the Table

 

Client NumberClient NameABCD
123ABC GroupXHJUYIL98768909909889 
123ABC GroupXHJUYIL98768907909887 
123ABC GroupXHJUYIL98768907909885 
125NCM GroupOJKIJIKL37838WAGSGS 
126ACM GROUP564456121288UT6769QWA7979

 

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @gauravnarchal ,

 

See if this meets your needs

V-lianl-msft_0-1602659481936.png

Unpivot the FF1-9 columns and create a measure to apply it to visual level filter.

Measure = SWITCH(TRUE(),
MAX('Table'[Client Number])=123&&MAX('Table'[Attribute])in {"FF1","FF2","FF3"},1,
MAX('Table'[Client Number])=125&&MAX('Table'[Attribute])in {"FF4","FF6","FF7"},1,
MAX('Table'[Client Number])=126&&MAX('Table'[Attribute])in {"FF6","FF8","FF9"},1
)

Sample .pbix 

 

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

HotChilli
Super User
Super User

Typo in "Client 125, i want FF4, FF6 & FF6 only"?

 

---

If you are more comfortable with the interface rather than M:

Duplicate the table 2 times.

1st table : Filter for client = 123. Remove columns 4-9. Rename FF columns as A, B, C

2nd table : Filter for client = 125. Remove columns 1,2,3,5,8,9?.  Rename FF columns as A, B, C

3rd table : you get the idea.

 

"Append as new" the 3 tables together

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.