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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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