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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Matirx Visual in Power BI

Hello Friends 
I have a matrix visual which has stepped layout with +/- icon for power bi 

Sujit14496_0-1707446863121.png

as you can see above 
when i open these + icon it will show second category and its total as shown below 

Sujit14496_2-1707447117048.png

 

and when user opens second categories + icon it will show the unit category level which has background color for cell depending on a conditional formating rule as shown below 

 

Sujit14496_1-1707447058910.png

 


But here you can see in second image even when i havent opened the second +icon it is not showing row total in some places but it is showing some background color 
as you can see below with red circles that its not showing row subtital but background color which i set up for cell color from conditional formating
from vbelow you can see issue is the red circle while it shoyld be someting like green circle

Sujit14496_4-1707447328449.png

 

 



please help
@GuyInACube 
@amitchandak 
@lbendlin 
@Aldrin 
@aj1973 

 

@v-jiascu-msft 
@v-jianboli-msft 

 

 

 

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Not sowing subtotal can be because of row context used in measure like

if(Max(Item[Category]= "ABC"

or if you have used hasonevalue, isfiltered or isinscope

 

For that, you have to share the measure used.

 

Usually, we fix row context issues by creating a new measure on top of your column with all applicable group bys (row/column field).

 

Sumx(Summarize(Fact, Dim[Col], Dim2[Col], "_1", [Measure), [_1])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Hello @amitchandak 
as i have 52 columns in matrix as of 52 weeks of year ,
i am using calculated column for every week for conditional formating 
example 

colorweek 18 =
SWITCH(
    TRUE(),
    RELATED(sales[Week18])=1 && RELATED(sales[type])="A", 1,
    RELATED(sales[Week18])=1 && RELATED(sales[type])="B",2,
    RELATED(sales[Week18])=1 && RELATED(sales[type])="C",3,0)


and the week is also a column 
like 
Week18 =
var wek = 18            
var b = IF(sales[status]="ongoing" || 'sales'[status] = "about to start",
            IF(
            sales[startdate] <= ((TODAY()+(7*(Wek-1))) - WEEKDAY(TODAY()+(7*(Wek-1)),1)+ 1)+7
                && 'sales'[enddate] >= (TODAY()+(7*(Wek-1))) - WEEKDAY(TODAY()+(7*(Wek-1)),1)+ 1 ,1,0),0)
return b
Anonymous
Not applicable
Anonymous
Not applicable

Please help 

@amitchandak 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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