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
ndamota
Frequent Visitor

problem finding visits that I have in common with my competitors

Hello everybody,

I have a problem finding visits that I have in common with my competitors

I have a table or I have Mandates, allotted to Mandates (Commercial) companies.

The folowing exemple :

 

 

Mandat

Société Mandat

Visite Société

M1

Total

5

M2

Total

3

M3

Total

2

M1

Auchan

5

M2

Auchan

2

M5

Auchan

1

M8

Total

1

 

I can do calculate this

include a percentage that represents the total number of visits by the company to its joint mandates divided by the total number of visits made by all competitors to the joint mandates.

 

My goals  its example

 

If I filter by company of total. I have 8 visites of my mandat (8+7 visite compétitors on common)

The results its

8/15 donne 53 %.

I try this measurement but the approximate results

 

#Nb de visite en commun = Var A = VALUES(Mandat)

 

return

CALCULATE(SUM(Visites Société);ALL(Société Mandat]);A)

 

Measure 3= Sum(Visites Société)/ #Nb de visite en commun

 

My problem is that if I have an M8 mandate which is unique. And I select Total as a filter. The final value will be 9/16
How can you do to say to be able to select me as those where I am in common.

Has anyone ever encountered this problem, and comment on the resolution please?

Thank you

2 ACCEPTED SOLUTIONS
v-diye-msft
Community Support
Community Support

Hi @ndamota 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!

 

Community Support Team _ Dina Ye
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

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @ndamota 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Greg_Deckler
Super User
Super User

I can't figure out where you are getting your 8 and 15 numbers from. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi

thank you for answer. Sorry my english is bad

 

If I take in panel filter Company "total ". I first Measure would calculate the visits for company "Total" with paramenter common of mandat with other company. Secondly I would the visit common with M1 and M2 of companys other of "Total"

 

I get 8 , if I groupe by colunm  Société Mandat " total" and sum the visit by common.

Mandat

Société Mandat

Visite Société

M1

Total

5

M2

Total

3

            Measure 1=                                                                          8

Measure 1 = Sum ( visit)

I get 7 visits who common with Mandat (M1; M2) of common with Mandat of "Total" 

Mandat

Société Mandat

Visite Société

M1

Auchan

5

M2

Auchan

2

                                        Measure 2                                              7

 

I get 8/(8+7) => My company Total Have 8/15 =53% of visite visits carried out by Total

 

Measure 2 =

#Nb visit common other company = Var A = VALUES(Mandat)
return
CALCULATE(SUm(visit);FILTER(ALL(Société Mandat);Société Mandat<>SELECTEDVALUE(Société Mandat));A)
 
Thank you, Tomorrow I send you the Pbix example

 

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.