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
jayjani
Helper I
Helper I

Pulling 2 different values in a single column

I have a table as shown in the below image. I want to add a 5th column "Total", which pulls the latest quarter value for Owned HC and sum total for Owned Cost. Example, for the month July, it should pull Q3 value (495) for Owned HC and 53.32 for Owned Cost.

 

I found the code to pull latest Owned HC (that is

Latest Owned HC =
Var CurrMonth = [CMonth]
Var CurrQuarter = [CQuarter]
Return
CALCULATE(AVERAGE('DAC Unpivot'[Value]), 'DAC Unpivot'[Transfer Org] = "Owned HC", 'DAC Unpivot'[Month No] = CurrMonth, 'DAC Unpivot'[Quarters]= CurrQuarter))
 
However, I don't know how can I get the Latest Owned HC and Sum total of Owned Cost in the same column?

 

image.png

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @jayjani ,

 

kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others 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