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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
trulynaveen
Frequent Visitor

Subtotal Issue

Hi Everyone,

 

I'm not able to produce a subtotal in my report. Can anyone please help me to fix this?

 

Formulas I used here are as below: 

 

JobActualHours = IF(HASONEVALUE('Budget Data'[DeptName]),SUMX(FILTER('Jobs Data', 'Jobs Data'[NewJobClass] = SELECTEDVALUE('Budget Data'[DeptName])),('Jobs Data'[JobHours])))
 
KronosHours = IF(HASONEVALUE('Budget Data'[DeptName]),SUMX(FILTER('Kronos Data', 'Kronos Data'[NewJobClass] = SELECTEDVALUE('Budget Data'[DeptName])),('Kronos Data'[Kronoshrs])))

 

Password: bi2020

 

Click the link to get access to the Data File Attachment 

 

Subtotal.JPG

 

DeptName is coming from Budget worksheet from the attachment, I have created a Date field (CalendarAuto) and created date relationship with the three worksheets. I want to see the variance for each Department

 

Appreicate your help!

 

 

1 ACCEPTED SOLUTION

Hi , @trulynaveen 

You need to do same  change in  your  measures .

Take the measure JobActualHours as a  sample:

 

JobActualHours = SUMX(FILTER('Jobs Data', 'Jobs Data'[NewJobClass] in FILTERS('Budget Data'[DeptName])),('Jobs Data'[JobHours]))

 

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

@trulynaveen would you mind sharing how you connected your Kronos data? Was it using the REST API an if so how did you do this?

amitchandak
Super User
Super User

@trulynaveen 

I think your hasonevalues are stopping them . Why those are needed.

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

Refer, if this can help

https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sorry this is not helpful. Appreciate your response!

Hi , @trulynaveen 

You need to do same  change in  your  measures .

Take the measure JobActualHours as a  sample:

 

JobActualHours = SUMX(FILTER('Jobs Data', 'Jobs Data'[NewJobClass] in FILTERS('Budget Data'[DeptName])),('Jobs Data'[JobHours]))

 

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors