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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Diasmt2
Regular Visitor

Text Column consolidating incorrectly

Hi All,

 

I am trying to buid a matrix with data from a project. 

However, i have an issue with the status column. When I go to a upper level, the consolidation is brinding "Done" as it is the latest value, but actually should be late...as we have an acitivity late.

Is there a way to fix it or to bringing blank when it is a upper level?

 

Diasmt2_1-1715525375905.png

 

Thank you!!!!!!

 

 

 

 

1 ACCEPTED SOLUTION
Wilson_
Super User
Super User

Hi Diasmt2,

 

Try creating a DAX measure like:

Status =
SWITCH (
    TRUE(),
    ISINSCOPE ( Table1[Lower Level] ), SELECTEDVALUE ( Table1[Status] ),
    ISINSCOPE ( Table1[Upper Level] ), IF ( "Late" IN VALUES ( Table1[Status] ), "Late", "Done" )
)

 

Of course, please use your actual table and column names instead of my placeholders, and incorporate your own logic into the last line. The main thing I'm trying to show is the SWITCH/ISINSCOPE measure structure, which allows you to have different logic at different levels of detail in your hierarchy.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
Wilson_
Super User
Super User

Hi Diasmt2,

 

Try creating a DAX measure like:

Status =
SWITCH (
    TRUE(),
    ISINSCOPE ( Table1[Lower Level] ), SELECTEDVALUE ( Table1[Status] ),
    ISINSCOPE ( Table1[Upper Level] ), IF ( "Late" IN VALUES ( Table1[Status] ), "Late", "Done" )
)

 

Of course, please use your actual table and column names instead of my placeholders, and incorporate your own logic into the last line. The main thing I'm trying to show is the SWITCH/ISINSCOPE measure structure, which allows you to have different logic at different levels of detail in your hierarchy.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors