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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Stop measures from repeating in matrix visual

Hello PBI experts,

 

I would like to know if the issue of measure repeating in matrix visual for each group/category has been resolved. The workaround is to resize the unwanted repeating measures, but it leaves the report look very untidy. Another workaround suggested on some post is to ues 'ISINSCOPE' function. I have tried to use this, but doesn't work to resolve repeating measures.

Here is an example: The measures highlighted in yellow are repeating for locations N & S and not wantedMeasures repeat.PNG

5 REPLIES 5
SheetalP2403
New Member

Anybody has any solution for this issue ?

v-shex-msft
Community Support
Community Support

HI @Anonymous 

I'd like to suggest you add if statement to check current row contents level, than you can skip calculate on specific level items.  If whole row/column not has correspond records, matrix visual will hide this row/column.

Clever Hierarchy Handling in DAX

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

@v-shex-msft thanks for your reply, but I can't figure out any hierarchy levels in my dataset.

Hi @Anonymous ,

If you use multiple table fields in column/row fields, they can also work similarly to a hierarchy structure.

In addition, you can also consider to create a custom column time table to replace original table fields, then write measure to use the current row and column to search corresponding results.

Calculate table:

Column Table =
DATATABLE (
    "Parent", STRING,
    "Child", STRING,
    {
        { "S", "S Billing" },
        { "S", "SC_Diff" },
        { "S", "Total" },
        { "N", "N Billing" },
        { "N", "NW_Diff" },
        { "N", "Total" }
    }
)

Regards

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Greg_Deckler
Super User
Super User

@Anonymous - I don't have an answer for this but very interested in this subject. Many times, users want the measure as a total but not in the column groups themselves. Have run into this kind of thing multiple times and haven't found an adequate fix so adding myself to this thread to see if someone else knows of a solution.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.