Forum Discussion

malpani's avatar
malpani
Icon for Helper II rankHelper II
2 years ago
Solved

Need help with Power BI matrix visual

Hi,  I am pulling data from JIRA and finally I shaped it to following format. This is dummy data -  Parent-Key Parent-Title Product  Parent-tatus Child-Key Child-Title Child-Status CNS...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi malpani ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create measures. 

    Title = 
    var _a=CALCULATE(MAX('Table'[Child-Title]),FILTER(ALLSELECTED('Table'),'Table'[Child-Key]=MAX('Table'[Child-Key])))
    return SWITCH(TRUE(),
    ISINSCOPE('Table'[Child-Key]),_a,
    ISINSCOPE('Table'[Parent-Key]),MAX('Table'[Parent-Title]),BLANK())
    Status = 
    var _a=CALCULATE(MAX('Table'[Child-Status]),FILTER(ALLSELECTED('Table'),'Table'[Child-Key]=MAX('Table'[Child-Key])))
    return SWITCH(TRUE(),
    ISINSCOPE('Table'[Child-Key]),_a,
    ISINSCOPE('Table'[Parent-Key]),MAX('Table'[Parent-status]),BLANK())

    (3) Then the result is as follows.

     

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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