cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User I
Super User I

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




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

Proud to be a Super User!




Highlighted
Super User IV
Super User IV

@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]))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
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))). 

Highlighted

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

 

see attached.





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

Proud to be a Super User!




Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors