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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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