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,
please i have do this mesure (Total_Absence/Seance = CALCULATE([Total_Seance_Planifiee],rpt_adAttendanceDetail_vw[P/A]="A") ) it works but the problem is when we dont have a "A" and we have a "P" it give a blank, I need it to give me a 0 instead of blank how can i fixe it ???
Solved! Go to Solution.
This may work:
Total_Absence/Seance = if(isblank(CALCULATE([Total_Seance_Planifiee],rpt_adAttendanceDetail_vw[P/A]="A")),0,CALCULATE([Total_Seance_Planifiee],rpt_adAttendanceDetail_vw[P/A]="A"))
or:
if(rpt_adAttendanceDetail_vw[P/A]="P",0,CALCULATE([Total_Seance_Planifiee]))
Without seeing your data, I cannot decide which would work better.
This may work:
Total_Absence/Seance = if(isblank(CALCULATE([Total_Seance_Planifiee],rpt_adAttendanceDetail_vw[P/A]="A")),0,CALCULATE([Total_Seance_Planifiee],rpt_adAttendanceDetail_vw[P/A]="A"))
or:
if(rpt_adAttendanceDetail_vw[P/A]="P",0,CALCULATE([Total_Seance_Planifiee]))
Without seeing your data, I cannot decide which would work better.
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
83 | |
68 | |
49 | |
46 |