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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to hide columns from a matrix, keeping just the Total

Hi! Do you have any tip to solve this issue?

I need to create a table like the one attached (Store vs. #Visits per Month) and add a column with the average of the months.

But when I do this, Power BI applies the Average for each column, each month. And I would like it to include only 01 more column in the report.

IMG_20190926_125525480.jpg

7 REPLIES 7
Nathaniel_C
Super User
Super User

Hi @Anonymous , would you give us a little more detail?

You drop the column Noma da Loja on the matrix, and then what?

Thank you,

Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi @Nathaniel_C

Actually the problem are the columns. When I drop the "Average Visits" measure, it splits the columns of each month (June, July, August) into "Qty Visits" and "Avg Visits".

But I need to have a table where: each month only shows the column "Qty Visits"; Totals shows both "Qty Visits" and "Average Visit".


@Nathaniel_C wrote:

Hi @Anonymous , would you give us a little more detail?

You drop the column Noma da Loja on the matrix, and then what?

Thank you,

Nathaniel


 

@Anonymous ,

So it sounds like the Average Visits measure is the problem. Would you be able to share that with us?

Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

@Nathaniel_C Sure! Please find it through the link https://we.tl/t-g3S53gA2NR

Anonymous
Not applicable

Hi @Nathaniel_C, any tip?


Hi @Anonymous ,

I worked on this, but didn't get anywhere.  Then just now was thinking it might have something to do with the hierachy, tried to go around that but generating a column that gave Month Name, but still didn't get it.  

 

Maybe @jdbuchanan71 has some insight? 

averages1.PNG

 

averages2.PNG

 

 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Even if you force the average measure to return a blank with something like this.

Avg Visits = IF ( ISINSCOPE( 'Table'[Month].[Mês] ), BLANK(), AVERAGE( 'Table'[Qtd Visitas] ) )

It will still show the blank column under every month.

AsymetricMonth.jpg

PowerBI does not seem to like asymetric reporting (visits on the months but visits and average on the total).  The best I have found to do is make the extra columns narrow enough that they don't show up.
AsymetricMonthHidden.jpg

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors