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
rabah
New Member

var = union

Nbr Clients Stratégique =

CALCULATE(
DISTINCTCOUNT(unionFactureBon[ID_CLIENT]),
CLIENT[BOOL_STRATEGIQUE] = TRUE()
)

 

VAR unionFactureBon =
                              UNION(
                                SUMMARIZE(FACTURE_VENTE, FACTURE_VENTE[ID_CLIENT], FACTURE_VENTE[DATE_FACTURE]),
                               SUMMARIZE(FILTER(BON_LIVRAISON, ISBLANK(BON_LIVRAISON[DATE_FACTURE])),

                                           BON_LIVRAISON[ID_CLIENT], BLANK()) 
                              )

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Your syntax is the wrong way round

 

Table = 

var tempvariable = something

return union(tempvariable, tempvariable)

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Your syntax is the wrong way round

 

Table = 

var tempvariable = something

return union(tempvariable, tempvariable)

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.