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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
tyan
Helper II
Helper II

How to display the correct precentage

WeChat Image_20211111215247.png

Cancellation Value % should show higher the cancellation value with the higher % of cancellation %,  but I think it uses each brand total amount insteand of using total brand amount as my TOTAL.  

 

$341,032.64 should show the highest % amoung of these brands. 

 

 I did 

cancellation value: calculate(sum(database[order value],filter(database,database[analysis]= "cancel"))

 

total value : calculate(sum(databse[order value]))

 

cancellation value %:   dividie( cancellation value,  total value)

 

someone please help !

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

I am not sure of what you want but try this

cancellation value = calculate(sum(database[order value]),database[analysis]= "cancel")

total value = calculate(sum(databse[order value]),all(database[brand]))

cancellation value % = divide([cancellation value],[total value])

Hope this helps.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @tyan ,

 

If your total is calculated only with analysis="cancel", you can modify the measure to

Total value = CALCULATE(SUM('database'[order value]),FILTER(ALL(database),[analysis]="cancel"))

The other measures remain unchanged.

vstephenmsft_0-1636964540557.png

 

You can check more details from the attachment.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Stephen, thank you for answering me question. The % looks good which higher cancenllation value = higher cancellation%; however, the total %, I am not looking for 100% thos

Anonymous
Not applicable

Hi @tyan ,

 

What do you want to show here in total?

vstephenmsft_0-1637026767974.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Ashish_Mathur
Super User
Super User

Hi,

I am not sure of what you want but try this

cancellation value = calculate(sum(database[order value]),database[analysis]= "cancel")

total value = calculate(sum(databse[order value]),all(database[brand]))

cancellation value % = divide([cancellation value],[total value])

Hope this helps.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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