Forum Discussion
Text Column consolidating incorrectly
- 2 years ago
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.
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.