cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShawnPrice
Helper I
Helper I

Percent of open and closed

Capture.PNG

 

I need to be able to have BI do what I've done in Excel its just a simple divide the open vs the closed for each person but I'm having issues how do that. The peoples name are the rows, and the call status is the column and the value is the count of the contract id. Thanks

 

Shawn

1 ACCEPTED SOLUTION

@ShawnPrice

 

Contract id is string?

 

If answer is yes, yo need to replace the measures:

 

TotalContracts=Calculate(Countrows(Table]))

Closed=Calculate(Countrows(Table]),Filter(Table,CallStatus="Close"))

Open=Calculate(Countrows(Table]),Filter(Table,CallStatus="Open"))




Lima - Peru

View solution in original post

5 REPLIES 5
Vvelarde
Community Champion
Community Champion

@ShawnPrice

 

Hello:

 

Let's to try with these measures:

 

TotalContracts=Calculate(Count(Table[ContractId]))

Closed=Calculate(Count(Table[ContractId),Filter(Table,CallStatus="Close"))

Open=Calculate(Count(Table[ContractId),Filter(Table,CallStatus="Open"))

 

%Closed=Divide([Closed],[TotalContracts])

%Open=Divide([Open],[TotalContracts])




Lima - Peru

I have this done %Closed=Divide([Closed],[TotalContracts]) but I get this error now when I try to bring it on the page.

 

Capture2.PNG

@ShawnPrice

 

Contract id is string?

 

If answer is yes, yo need to replace the measures:

 

TotalContracts=Calculate(Countrows(Table]))

Closed=Calculate(Countrows(Table]),Filter(Table,CallStatus="Close"))

Open=Calculate(Countrows(Table]),Filter(Table,CallStatus="Open"))




Lima - Peru

So changing to count rows work, Thanks thats awesome. This is what I get now which is correct. Do you know if there is any good way to hide the extra columns that have showed up and just have the %Closed total at the end?Capture3.PNG

Hi ShawnPrice,

 

Currently there is no option available to hide the extra columns, but there is a workaround which you may take a try:

"

hover your mouse over your column heading that you want to "hide" and move it to the right until the mouse cursor changes to a <->, then left-click and drag to the left until it is completely hidden. 

"

See this thread for reference:

How can i hide Column/measure in a Table

Regards

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors