cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ide
Regular Visitor

Calculate switching between brands

Hi guys,

 

Is it possible to make following thing happen....

 

What data i have:

Brandsum
Brand_A2309
Brand_B2342
Brand_C1234
Brand_D257

 

What i want to build in power bi - "switching between brands". For 1st row (Brand_A) it tells that sales for Brand_B is higher (+500) compare to Brand_A, sales for Brand_C are smaller (-200), sales for Brand_D again higher. 

 

 Brand_ABrand_BBrand_CBrand_D
Brand_A 500-200345
Brand_B113 324-783
Brand_C245356 234
Brand_D756-23475 

 

Prob, i need to add something in my dataset, like customer ID or something. Any ideas? 

 

Thanks!

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @ide ,

 

Create four measures similar to this

Brand A = SUM('Table'[Sum])-
 CALCULATE(SUM('Table'[Sum]),FILTER(ALLSELECTED('Table'),'Table'[Brand]="Brand_A" ))

V-lianl-msft_0-1608186145015.png

Sample .pbix

 

 

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

 

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@ide , Not able to find logic between input and output. The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.




Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Hi @amitchandak to be clear i have same confusion.

 

I believe it should be different datasample in input. Idea is to have knowledge about switching between brands. All i got is screenshot with same approach, but made in different system. Unfortunately, have no option to got anwers from customer. Probably anyone here had faced something like this.Безымянный.png

 

Explaination for 1st row almost the same as in my example. 

Sales for J_Бренд_B higher than J_Бренд_A, sales for J_Бренд_C smaller than J_Бренд_A and so on.

 

ide
Regular Visitor

How it can be, in excel example

 

ide_1-1607965315800.png

 

V-lianl-msft
Community Support
Community Support

Hi @ide ,

 

Create four measures similar to this

Brand A = SUM('Table'[Sum])-
 CALCULATE(SUM('Table'[Sum]),FILTER(ALLSELECTED('Table'),'Table'[Brand]="Brand_A" ))

V-lianl-msft_0-1608186145015.png

Sample .pbix

 

 

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

 

ide
Regular Visitor

P.S. data in "what i want to get" chapter is invented.

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors