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