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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

SUM with aggregation with an other column

Hello everyone,

One more problem...

 

Only one table here! These are the list of inscriptions to session and formation (a formation MAY BE included sessions or not). A formation and a session has an id (the same column and the same table).

 

N°Session  N°Reservation N°SessionParent N°InscriptionParent  NbDaysSession NbDayFormation

1                 4000               x                           x                               1                        x

1                 4001               10                         4001                         1                        1

10               4001               x                           x                                x                        1

...

 

So, I would like a column with the number of days for each "session" (or formation).

On my session 10, I would like a result => 1 day (or more if I got many N°SessionParent=10 on the rest of my table)

 

Thank you all,

 

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Above table is the source dataset, right? Which is the formation field? And can you please describe why the results of NbDayFormation are x, 1, 1 in above three rows?

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Sorry,

 

my translation was not fine..."formation" (in french) is a training.

 

One people can have an inscription either on a session (only the session) or on a training (included this session an others session).

Is it clearer?

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.