Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have this type of leaves.
what I want to do is calculate the count of every leave individually then add the hours infront of it.
For example NT count is 10 then add all the hours 10 times.
If count of SL is 4 then add all the hours 4 times.
this is just a reference image there are hours value can be any not always 8.5. sometimes 10, 4 , etc
just need the sum of it by leave count.
I want to make a measure.
thanks
Hi @Anonymous
Not quite understand the requirements, please kindly elaborate more with detailed data and expected results. dummy pbix is appreciated.
Not entirely certain I have this, but maybe put your "Leave" column in a visual and then use this measure:
Measure =
VAR __Count = COUNTROWS('Table')
VAR __Sum = SUM('Table'[Hours])
RETURN
__Count * __Sum
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 62 | |
| 51 | |
| 45 |