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 1Measure 1Column 2Measure 2Measure 1 / Measure 2Need this Output in Table/ Matrix
13%25%54%54%
411%615%72%72%
514%923%60%60%
617%718%93%93%
822%38%289%289%
925%410%244%244%
38%821%41%

41%

36100%39100%100%853%

Need this 853% as Output in Visual

 

Column 1Measure 1Column 2Measure 2Measure 1 / Measure 2Need this Output
1=A2/$A$92=C2/$C$9=B2/D2=C2/E2
4=A3/$A$96=C3/$C$9=B3/D3=C3/E3
5=A4/$A$99=C4/$C$9=B4/D4=C4/E4
6=A5/$A$97=C5/$C$9=B5/D5=C5/E5
8=A6/$A$93=C6/$C$9=B6/D6=C6/E6
9=A7/$A$94=C7/$C$9=B7/D7=C7/E7
3=A8/$A$98=C8/$C$9=B8/D8=C8/E8
=SUM(A2:A8)=SUM(B2:B8)=SUM(C2:C8)=SUM(D2:D8)=B9/D9=SUM(E2:E8)

 

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

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.

  • gma's avatar
    gma
    Frequent Visitor

    Fantastic, it worked extactly matched with requirement.