The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello everyone, i would like to get some help, but first I will give some context (the names are in French sorry)
Sem | Date | Nom | Prénom | Matricule | Structure | Durée | Libellé | Créneau Horaire | ACH160 (1ere incluses) | Urgences | RETAB | DIT | DAN | A analyser EPOD | A régulariser | MHS Point coupé | ACH | DIT | INTER APPAREILS | |||
29 | 18/07/2023 | GUEZZEN | INAYA | I56375 | Clermont Ferrand | 08:00 | 11:45 | 03:45 | Atelier sur site | 08:00-11:45 |
So here you have an exemple of my source for my BI, i have around 4000 lines like that
The idea is to sum the "Durée" (time spent) by day in order to understand how many hours were done each day (the cross is use the select the type of action realised), first i created a new table with days from 01/01/2023 to 12/31/2025 linked with the origin table on the Dates and then i wrote this program :
and with the filter
I tried things like creating a new table with only the names and give it the priority over the others tables but nothing work
the thing strange here, it's when I create a new column with this program :
Hello
you can use measures instead of columns to calculate sum of time or what ever calculation you are doing
the reason being once the value is calculated in column that doesnt change
so iif you use measureyou wont face any issue:
for example
ACH 160 durée =
SUMX(FILTER(
'Table 1 (CONSIGNES)',
[ACH160 (1ere incluses)] = "x" &&
[Date]=selectedvalue(Calendrier[Date])
), [Durée])*24
in the line chart this measure takes the axis value (calander date) which you used in x axis and then gives sum, now answer varies based on filter applied and you can use it for other 8 columns as well
if this helps , please mark as solution
User | Count |
---|---|
69 | |
66 | |
62 | |
48 | |
28 |
User | Count |
---|---|
112 | |
83 | |
66 | |
48 | |
43 |