cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors