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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
apaulso9
Resolver I
Resolver I

@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/

amitchandak
Super User
Super User

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.