cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
avitalo1
Frequent Visitor

matrix visual - do not show total for one column

I have a table visual with numerical columns and a date column and a total line.

The total for the date column shows the latest date which is not helpful.

The matrix is filtered, but does not have a slicer.

 

I have changed the color of the total so it's mostly invisible, but would like to not show it at all. 

 

Ana Maria Bisbe York presented a solution in her DAX webinar but I didn't understand it fully and it seemed too complex for my problem. (https://www.youtube.com/watch?v=2Des1Id-22A from 19:45 min)

Any ideas would be welcome. I'm new to power BI and don't really have a local community to consult with. 

2 REPLIES 2
VasTg
Memorable Member
Memorable Member

@avitalo1 

See the image below. The metric "Measure" was not calculated for Total line. How do I identify the total line? You need to understand how filter context works. On a high level each cell is calculated independently in a matrix. In the example,

for the first line, the table "Table" is filtered for date 01/01/2020 and sums the sales column for the returned rows. 

for the second line, the table "Table" is filtered for date 01/05/2020 and sums the sales column for the returned rows and so on. So each row has a date filter which filters  the table "Table" based on defined relationship. But the total line does not have any date filter. When the condition fails in HASONEFILTER, it just blanks out based on the measure formula.

 

image.pngRead this article to better understand the concept.

 

https://www.sqlbi.com/articles/row-context-and-filter-context-in-dax/

 

If it helps, mark it as a solution

Kudos are nice too.

 

 

Connect on LinkedIn
avitalo1
Frequent Visitor

@VasTg 

Thank you for the through explination and the example.

 

If I understand correctly I need to replace my current Date of registrtion request column with the measure:

2nd Date of registration request = IF(HASONEFILTER('Rama + Adi merged'[ shem_fakulta_1-EN]]),[missing second argument] , BLANK())
 
All the other columns in this matrix are based on measures and I they don't appear on the drop down for the SUM function, what DAX function can I use instead of SUM which requires columns? Or is there a way to sum all except the one date column?
 
Attaching a screenshot of my matrix columns - the one I don't want to total is the only date. matrix headings.png

Helpful resources

Announcements
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

Ted's Dev Camp - October 6, 2022

Watch the playback of Session 26 with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors
Top Kudoed Authors