This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi Friends,
Currently i have created a Matrxi visual using the 3 dimension columns and 1 fact column and the result is below.
I am faicng unique situation where i need to show the total only at the first row of the category level. Something like the below.
Note: I dont want to use row totals.
Please suggest me some ideas.
@amitchandak @Ritaf1983 @Greg_Deckler @ChandeepChhabra @GilbertQ @dbeavon3
Solved! Go to Solution.
Hi @Anonymous ,
I created a sample pbix file(see the attachment), please check if that is what you want.
Measure =
VAR _category =
SELECTEDVALUE ( 'Table'[Product Category] )
VAR _subcategory =
SELECTEDVALUE ( 'Table'[Product Sub Category] )
VAR _product =
SELECTEDVALUE ( 'Table'[Product Name] )
VAR _minsubcat =
CALCULATE (
MIN ( 'Table'[Product Sub Category] ),
ALLEXCEPT ( 'Table', 'Table'[Product Category] )
)
VAR _minpro =
CALCULATE (
MIN ( 'Table'[Product Name] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Product Category] = _category
&& 'Table'[Product Sub Category] = _minsubcat
)
)
RETURN
IF (
_subcategory = _minsubcat
&& _product = _minpro,
CALCULATE (
SUM ( 'Table'[Sales] ),
ALLEXCEPT ( 'Table', 'Table'[Product Category] )
)
)
Best Regards
Hi @Anonymous ,
I created a sample pbix file(see the attachment), please check if that is what you want.
Measure =
VAR _category =
SELECTEDVALUE ( 'Table'[Product Category] )
VAR _subcategory =
SELECTEDVALUE ( 'Table'[Product Sub Category] )
VAR _product =
SELECTEDVALUE ( 'Table'[Product Name] )
VAR _minsubcat =
CALCULATE (
MIN ( 'Table'[Product Sub Category] ),
ALLEXCEPT ( 'Table', 'Table'[Product Category] )
)
VAR _minpro =
CALCULATE (
MIN ( 'Table'[Product Name] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Product Category] = _category
&& 'Table'[Product Sub Category] = _minsubcat
)
)
RETURN
IF (
_subcategory = _minsubcat
&& _product = _minpro,
CALCULATE (
SUM ( 'Table'[Sales] ),
ALLEXCEPT ( 'Table', 'Table'[Product Category] )
)
)
Best Regards
hello @Anonymous ,
yes try the following but fill in with your field and table names
Sales =
IF (
ISINSCOPE('Table'[Product Name]),
BLANK(), -- For Product Names, show nothing
IF (
ISINSCOPE('Table'[Product Sub Category]),
BLANK(), -- For Sub Categories, show nothing
[TotalSales]
) -- Show total at Product Category level
)
)
Proud to be a Super User! | |
Hi @Idrissshatila,
This wont work becasue the moment first condition satisfies
IF (
ISINSCOPE('Table'[Product Name]),
BLANK(),
It wont go to the next set of IF conditions.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 27 | |
| 23 | |
| 19 |