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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
AlexGallet01
Helper IV
Helper IV

Problem with formula

Hello,

 

I don't understand why i don't do this.

 

Représentant choisi = SELECTEDVALUE('Représentant'[Personnalisé])

 

Test = CALCULATE(SUM(Factures[Representant €]);Factures[Représentant 2]=[Représentant choisi])

 

Reguards.

6 REPLIES 6
AlexGallet01
Helper IV
Helper IV

I have another problem in rapport with this.

 

My representant have a link with rep01 but if i want to have the order with rep02 = representant i need to create a link with rep02 but it's not possible to create a link if he has another link.

 

So how i can to create 2 active links ?? 

Hi @AlexGallet01

You can have two links, although only one can be active at a the same time.

If you want to use the inactive relationship, you can use the USERELATIONSHIP function

Check

https://msdn.microsoft.com/en-us/library/hh230952.aspx

 

 

vcastello
Resolver III
Resolver III

Hi @AlexGallet01

 

Try ...

 

 

 

Test = CALCULATE(SUM(Factures[Representant €]);Factures[Représentant 2]=VALUES([Représentant choisi]))

Hello,

 

When i try this my Représentant choisi not accessible

Is there a relationship between 

1.- Table "Factures"

2.- Table "Représentant"

 

Possibly through Factures[Représentant 2] and Représentant[Personnalisé]
?

 

If so, a simple


CALCULATE(SUM(Factures[Representant €]))

should work for you

Hello,

 

I try a new measure. 

 

Représentant 2 € = CALCULATE(SUM(Factures[Representant €]);FILTER(Factures;Factures[Représentant 2]=[Représentant choisi]&&Factures[Représentant 1]<>[Représentant choisi]))

 

But now i don't have results while i do have results.

 

Sans titre.png

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.