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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
sebouier
Frequent Visitor

Asynchronous matrix table wrong subtotal

Hi,

 

For my client, I had to develop an asynchronous matrix table : 

sebouier_0-1673537759538.png

I built my measure to show in the subtotal row the evolution (in %) between the minimum year and the maximum year.

When I have data for each year to compare (one row for 2021 vs one row for 2020), the subtotal is correct.

When I don't, the subtotal is false.

The expected subtotal would be 100% if no row "2020", -100% if no row "2021"

 

Here's one of the measure I use : 

NbMandAllType with Evol = 
    IF(HASONEVALUE('Calendar'[Date].[Year]),
        [NbMandAllType],
        FORMAT([Evol all type between A min and A max],"+0\ %;-0\ %;+0\ %")
    )

 

I undersdand why I get what I get. When I have only Year row, the condition "HASONEVALUE('Calendar'[Date].[Year])" becomes true for the subtotal row as well. 

 

But how to fix it ? I think I have to add another condition in my IF, maybe a Year row count, but I can't get it right.

 

Thank you very much for your help.

2 REPLIES 2
FreemanZ
Community Champion
Community Champion

hi @sebouier 

what if you just write the measure like?

NbMandAllType with Evol =
FORMAT([Evol all type between A min and A max],"+0\ %;-0\ %;+0\ %")
)

Hi @FreemanZ

 

If I do that, my table will contain only pourcentage values, the subtotal value would be correct but not the year row values.

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.