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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
fbittencourt
Helper III
Helper III

Hide an specific subtotal field on the matrix

Hi guys !!

 

I need to hide an specific field from my matrix

fbittencourt_0-1747133650026.png

If I use apply setting to subtotals removes fournisseurs and nom de la ressource fields:

fbittencourt_1-1747133839100.png

 

I need just to hide the field from fournisseur

 

So I think I need to create a new calculated column " age" mesure, to not count this field:

 

My current calculated column mesure:

Age = iF(REF_RESSOURCE[Prénom ressource]="", 0,YEARFRAC(REF_RESSOURCE[Date d'arrivée initiale], if(isblank(REF_RESSOURCE[Date de départ]),TODAY(),REF_RESSOURCE[Date de départ]),1))
 
How can I add on this mesure ( If hasonvalue) or other possibility?
 
Tks in advance

 



1 ACCEPTED SOLUTION
v-sathmakuri
Community Support
Community Support

Hi @fbittencourt ,

 

I hope the information provided is helpful. Feel free to reach out if you have any further questions or would like to discuss this in more detail. If responses provided answers your question, please accept it as a solution so other community members with similar problems can find a solution faster.

 

Thank you!!

View solution in original post

9 REPLIES 9
v-sathmakuri
Community Support
Community Support

Hi @fbittencourt ,

 

I hope the information provided is helpful. Feel free to reach out if you have any further questions or would like to discuss this in more detail. If responses provided answers your question, please accept it as a solution so other community members with similar problems can find a solution faster.

 

Thank you!!

v-sathmakuri
Community Support
Community Support

Hi @fbittencourt ,

 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the responses has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

 

Thank you!!

v-sathmakuri
Community Support
Community Support

Hi @fbittencourt ,

 

May I ask if the provided solution helped in resolving the issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you!!

v-sathmakuri
Community Support
Community Support

Hi @fbittencourt ,

 

Thank you for reaching out to Microsoft Fabric Community.

 

I have created a measure to display blank in the matrix and used the newly created measure in the matrix to show values. Attached is the pbix file for reference. Please modify the DAX query below as per your requirements.

 

Sales (Only ≥ 100) =
VAR totalSales = SUM(SalesData[SalesAmount])
RETURN
    IF(totalSales >= 80, totalSales, BLANK())

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thank you!!

fbittencourt
Helper III
Helper III

Hello sorry to bother you, I am not able change for a mesure ( I think because the date diff calculated based on the year), I have tried with ISFILTERED , but unfortunately do not work as well, we have three levels of rows to filter the matrix, even if I use one of the rows to try to filter the result is the same.

 

If you are to adjust the logic I Appreciatte it

 

REF_FOURNISSEUR [Fournisseurs] or the other row REF_RESSOURCE[Nom de la ressource]

 

fbittencourt_0-1747144235545.png 

 

burakkaragoz
Community Champion
Community Champion

Hi @fbittencourt ,

 

To hide a specific subtotal (like for "fournisseur") in a matrix without affecting others, you can use a DAX measure with ISINSCOPE or HASONEVALUE to control visibility. Here's an example:

Age Measure =
IF(
    ISINSCOPE(REF_RESSOURCE[Fournisseur]),
    BLANK(),
    IF(
        REF_RESSOURCE[Prénom ressource] = "",
        0,
        YEARFRAC(
            REF_RESSOURCE[Date d'arrivée initiale],
            IF(ISBLANK(REF_RESSOURCE[Date de départ]), TODAY(), REF_RESSOURCE[Date de départ]),
            1
        )
    )
)

This will return blank when the matrix is summarizing by "Fournisseur", effectively hiding that subtotal.
translation and formatting supported by AI

fbittencourt_1-1747141496965.png

 

Thanks for your quick answer,

 

The measure is fine no issues, but we are not retrieving the expected "BLANK "results see the table, I have tried also HASONVALUE:

Age Measure =
IF(
    ISINSCOPE(REF_RESSOURCE[Nom de la Ressource]),
    BLANK(),
    IF(
        REF_RESSOURCE[Prénom ressource] = "",
        0,
        YEARFRAC(
            REF_RESSOURCE[Date d'arrivée initiale],
            IF(ISBLANK(REF_RESSOURCE[Date de départ]), TODAY(), REF_RESSOURCE[Date de départ]),
            1
        )
    )
)

OR

 

Age Measure 2 =
IF(
    HASONEVALUE(REF_RESSOURCE[Nom de la Ressource]),
    BLANK(),
    IF(
        REF_RESSOURCE[Prénom ressource] = "",
        0,
        YEARFRAC(
            REF_RESSOURCE[Date d'arrivée initiale],
            IF(ISBLANK(REF_RESSOURCE[Date de départ]), TODAY(), REF_RESSOURCE[Date de départ]),
            1
        )
    )
)
 
Tks again!!

 

Thanks for the follow-up. If neither ISINSCOPE nor HASONEVALUE is returning BLANK() as expected, it might be due to how the matrix visual is aggregating the data. Try wrapping the logic in a measure instead of a calculated column, and ensure the field you're targeting is actually in the current evaluation context.

Also, consider using ISFILTERED or checking the level of granularity with SELECTEDVALUE to better control when the measure returns a value. Let me know if you'd like help adjusting the logic based on your matrix structure.
translation and formatting supported by AI

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.