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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PBI5851
Helper V
Helper V

Adding a single column at end of Matrix

Hello,

 On a matrix table, i am trying to add a calculation at the end, but that measure keeps getting added after every single column. Please advise on how to add that calculated value only once. 

DateShippedCancelledCompleted
1/1/205030100
1/5//20102040
1/7/20506020
1/9/2010105

 

I wish to get the below. 

DateShippedCancelledCompletedComplete %
1/1/20503010055%
1/5/2010204057%
1/7/2050602015%
1/9/201010520%

 

The Shipped, Cancelled and complete are statuses from a single column. Now when i try to add a new measure (completed%), it shows up after every single column.  Any advise please ?

4 REPLIES 4
PBI5851
Helper V
Helper V

sample data... 

DateAcctIDStatus
1/5/2020A1001Shipped
1/5/2020A1002Shipped
1/5/2020A1003Shipped
1/5/2020A1004Completed
1/5/2020A1005Shipped
1/5/2020A1006Shipped
1/6/2020A1007Cancelled
1/6/2020A1008Completed
1/6/2020A1009Shipped
1/6/2020A1010Shipped
1/6/2020A1011Shipped
1/6/2020A1012Cancelled
1/6/2020A1013Shipped
1/6/2020A1014Cancelled
1/6/2020A1015Shipped
1/6/2020A1016Cancelled
1/10/2020A1017Shipped
1/10/2020A1018Completed
1/10/2020A1019Cancelled
1/10/2020A1020Completed
1/10/2020A1021Cancelled
1/10/2020A1022Cancelled
1/10/2020A1023Cancelled

 

The measure i have for the matrix is StatusCount = calculate(counta(Accounttable), userelationship (datetable(date), Accounttable(date))). 

the only way to prevent that from happening is to create a measure for each status rather than slice by the status.

 

see attached.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




amitchandak
Super User
Super User

@PBI5851 ,

Create a measure like

divide(sum(Table[Completed]), sumx(Table,Table[Shipped]+Table[Cancelled]+Table[Completed]))

 

or column like

divide((Table[Completed]), (Table[Shipped]+Table[Cancelled]+Table[Completed]))

vanessafvg
Super User
Super User

how are you creating your measure, can you provide some dummy data?




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.