Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
JoseTomas
Frequent Visitor

Finance Result on Matrix Visualization / DAX MEASURES /

Hi guys! I need your help with a measure...

This is my goal,  creating a  Finance report on a Matrix visualization, for example...

Total Revenue          $1000
     Revenue1           $500
          Revenue1.1   $300
          Revenue1.2   $200
     Revenue2           $500
          Revenue2.1   $400
          Revenue2.2   $100

Currently my data is like this...
Item; Key; Total
Total Revenue ;1; $1000
Revenue1;2 ;$500
Revenue1.1;3;$300
Revenue1.2;4;$200
Revenue2;5;$500
Revenue2.1;6;$400
Revenue2.2;7;$100


Also I have my structure with the same key.

My problem is this: If I make a new measure using Sum(total) and then insert it into a matrix visualition, this results in the Total Revenue and its sub-items appearing duplicated. Could someone help me resolve this issue?

Regards!!

 




                  




 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Your data source has redundant data. I'd recommend removing the extra rows and adding a grouping column so that it looks like this:

AlexisOlson_0-1704317597094.png

 

Sample M you can past into a new blank query:

let
  Source = Table.FromRows(
    {
      {"Total Revenue", 1, 1000}, 
      {"Revenue 1", 2, 500}, 
      {"Revenue 1.1", 3, 300}, 
      {"Revenue 1.2", 4, 200}, 
      {"Revenue 2", 5, 500}, 
      {"Revenue 2.1", 6, 400}, 
      {"Revenue 2.2", 7, 100}
    }, 
    type table [Item = text, Key = number, Total = number]
  ),
    #"Filtered Rows" = Table.SelectRows(Source, each Text.Contains([Item], ".")),
    #"Added Custom" = Table.AddColumn(#"Filtered Rows", "Group", each Text.BeforeDelimiter([Item], "."), type text)
in
  #"Added Custom"

 

Without the redundant information, everything sums up nicely.

AlexisOlson_1-1704317681931.png

View solution in original post

2 REPLIES 2
JoseTomas
Frequent Visitor

Hi Alexis!
thank you for your answer! I tried it and is totally useful 🙂

Best Regards

AlexisOlson
Super User
Super User

Your data source has redundant data. I'd recommend removing the extra rows and adding a grouping column so that it looks like this:

AlexisOlson_0-1704317597094.png

 

Sample M you can past into a new blank query:

let
  Source = Table.FromRows(
    {
      {"Total Revenue", 1, 1000}, 
      {"Revenue 1", 2, 500}, 
      {"Revenue 1.1", 3, 300}, 
      {"Revenue 1.2", 4, 200}, 
      {"Revenue 2", 5, 500}, 
      {"Revenue 2.1", 6, 400}, 
      {"Revenue 2.2", 7, 100}
    }, 
    type table [Item = text, Key = number, Total = number]
  ),
    #"Filtered Rows" = Table.SelectRows(Source, each Text.Contains([Item], ".")),
    #"Added Custom" = Table.AddColumn(#"Filtered Rows", "Group", each Text.BeforeDelimiter([Item], "."), type text)
in
  #"Added Custom"

 

Without the redundant information, everything sums up nicely.

AlexisOlson_1-1704317681931.png

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.