Forum Discussion

gma's avatar
gma
Frequent Visitor
3 years ago
Solved

Visual Level Totals in Table/Matrix

Hi Here is the requirement where its not feasible in power bi table/matrix visual but which is possible in Excel. Column 1 Measure 1 Column 2 Measure 2 Measure 1 / Measure 2 Need this Output...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi gma ,

    I have created a simple sample, please refer to my pbix file to see if it helps you.

    Create measures.

    Measure 1:

    Measure 1 = VAR _1=SUMX(ALL('Table'),'Table'[Column 1])
    
    RETURN
    ROUND(MAX('Table'[Column 1])/_1,2)
    Measure 1RE = VAR _2=SUMMARIZE('Table','Table'[Index],"AAA",[Measure 1])
    RETURN
    IF(ISINSCOPE('Table'[Index]),[Measure 1],SUMX(_2,[AAA]))

    Measure 2:

    Measure 2 = VAR _1=SUMX(ALL('Table'),'Table'[Column 2])
    
    RETURN
    ROUND(MAX('Table'[Column 2])/_1,2)
    Measure 2RE = VAR _2=SUMMARIZE('Table','Table'[Index],"AAA",[Measure 2])
    RETURN
    IF(ISINSCOPE('Table'[Index]),[Measure 2],SUMX(_2,[AAA]))

    and so on.

    How to Get Your Question Answered Quickly 

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Polly

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