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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.