Forum Discussion

Leo7736's avatar
Leo7736
New Member
2 years ago
Solved

Power bi matrix issue

Hi can someone give some insights about how to achieve this type of matrix in power bi ("Total" row as count of sales, "Total" column as sum of sales).  

  • Leo7736 write a measure like this:

     

    Measure = 
    IF ( HASONEVALUE ( Table[Product] ), SUM ( Table[Sales] ), COUNTROWS ( Table ) )

1 Reply

  • Leo7736 write a measure like this:

     

    Measure = 
    IF ( HASONEVALUE ( Table[Product] ), SUM ( Table[Sales] ), COUNTROWS ( Table ) )