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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-stephen-msft
Community Support
Community Support

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

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.