cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to make the total in the Matrix visual to sum only required rows

I have a Matrix Visual in which i what "orders" row  to be added to the totals but not "Backlogs"row.which means i want 1951 instead of 5165,similarly to the subtotalsas well.In the data set both orders and backlogs are invidual columns with the values .community 13.07.png

 

 

8 REPLIES 8
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

Do you have resolved it? If yes, you could accept the helpful answer as solution. You also could share your own solution here. For now, there is no content of description in the thread. If you still need help, please share more details to us.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

Whether the structure of the data table is as follows?

51.png

It is recommended to select column "backlog" and column "order"  then click "unpivot columns" to transform the table as below:

52.png

After dragging the field to matrix, you will get the following result:

 

54.png

 

Pbix attached

 

If it doesn't meet your requirement,please share your sample data and expected result.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

I did the same,but i want company wise orders and backlogs in horizontal way..which means Drags the Attribute columns from Column field to Rows field  ..but it has to add only orders  but not backlogs.

Hi,

Share raw data in a format that can be pasted in an MS Excel workbook and also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi . @Anonymous 

I'm a little confused by your description.

Is this your expected result?If not ,please share it in excel.

72.png

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Yes this is what i needed

Hi , @Anonymous 

Try measure as below:

Measure = 
var a=CALCULATE(SUM('Table 2'[2/15/2020]))
var b=CALCULATE(SUM('Table 2'[2/15/2020]),'Table 2'[Subcategory]="orders")
return IF(HASONEVALUE('Table 2'[Subcategory]),a,b)

The result will show as below:

35.png 

 

pbix attached

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , refer if this can help https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

else

Can you share sample data and sample output in table format?

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.