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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Ryo15
New Member

Text value in matrix

I have table with information about machine parts.
Initial Data looks like:

Level 1Level 2 Name
A-aaa
AA1bbb
AA2ccc

 

I want to sea a hierarchy of Level 1 and Level2, so I need to drag Lebel1 and Level2 to Rows.

Example of expected data in matrix:

Level 1Name
Aaaa

↓ Drill 

Level 1Level 2 Name
A-aaa
 A1bbb
 A2ccc

 

But the matrix displayed like this:

Level 1Name
Abbb

↓ Drill 

Level 1Level 2 Name
A-aaa
 A1bbb
 A2ccc

 

I want to display "aaa" as name of "A".

Please tell me if there is any solution to that.

1 REPLY 1
amitchandak
Super User
Super User

@Ryo15 , use is in scope

 

Switch( True() ,

isinscope(Table[Level 2]), Max(Table[Name])

calculate( Max(Table[Name])  , filter(Table, Table[Level 2] = "-"))

)

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.