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
gustavo80
Helper III
Helper III

Calculate drop % between clustered column bars

Hi!

I have a clustered column bar chart like this:

gustavo80_0-1592933400703.png

I need to calculate the drop % between second and third event ( in orange and blue, screenViewed and appLaunched) respect to the first event ( light blue, SDKStarted ) for EVERY day.

I created a measure like following, but it didn't work because it sums all values for all days, so I have the same drop % for all days, and I need that this were calculated for any day. I guess I need the following measure keep the day restriction, but I dont know how to indicate it to powerbi.

 

drop % = CALCULATE( DIVIDE ( SUM('esk_landing init_funnel_events'[appLaunched] ) , SUM('esk_landing init_funnel_events'[sdkStarted] ) ) )
 

What am I doing wrong ?

Thanks in advance,

Regards

1 ACCEPTED SOLUTION

@gustavo80 hmmm, seems like something to do with how you are model is structured, can you share sample data?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@gustavo80 if you use % drop measure on the visual, what happens? Logically it should work.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k 

 

I was expecting that it should work, but i'm getting the same drop% for all days :S ( I change the visualization to clustered and lines just to show the drop% thats is very small compared to totals, but its the same problem in clustered bar chart )

 

gustavo80_0-1592934881507.png

 

@gustavo80 hmmm, seems like something to do with how you are model is structured, can you share sample data?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

You are absolutely right. Preparing a dummy dataset for you, I realized that there was a problem in my model, thats why it didn't work.

 

Thanks for your time, it helps me a lot,

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.