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
rajasekaro
Helper II
Helper II

Cy purchase amount not correctly showing

hi team ,
i have calculate purchese amount and cy purchese amount 
cy (current year) purchase amount not correct
1.Purchase Bill Amount =
CALCULATE(SUM('PURCHASE ORDER BILL'[GSTASSVALUE]),'PURCHASE ORDER BILL'[OTHER]="PURCHASE BILL")/SELECTEDVALUE(DISPLAYAMOUNT[DIVFACT])

2.CY PBill Amount =
 var a = TOTALYTD([Purchase Bill Amount],'Calendar'[Date], ALL('Calendar'), "3/31")
 var b = TOTALMTD([Purchase Bill Amount],'Calendar'[Date])
RETURN
IF(HASONEFILTER('Calendar'[Month]),b,a)

rajasekaro_0-1744691549041.png

how to solve this 

1 ACCEPTED SOLUTION
v-bmanikante
Community Support
Community Support

Hi @rajasekaro,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

@pankajnamekar25 Thank you for your quick response.

 

Could you please share a small sample of your input data (without any sensitive or confidential information), along with the expected output and a clear explanation of your requirement? This will help us understand your scenario better and provide an accurate solution. A few representative rows and a brief description of the logic or transformation you're expecting would be really helpful. 

 

Regards,

B Manikanteswara Reddy

View solution in original post

7 REPLIES 7
v-bmanikante
Community Support
Community Support

Hi @rajasekaro ,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

B Manikanteswara Reddy

Hi @rajasekaro ,

 

As we haven’t heard back from you, we will go ahead and close this ticket for now.

If you need any further assistance, please don’t hesitate to raise a new ticket, we’re always happy to help.

Our sincere apologies if there was any inconvenience caused.

 

Regards,

B Manikanteswara Reddy

 

v-bmanikante
Community Support
Community Support

Hi @rajasekaro ,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

B Manikanteswara Reddy

v-bmanikante
Community Support
Community Support

Hi @rajasekaro ,

 

We would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.

 

If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,

B Manikanteswara Reddy

v-bmanikante
Community Support
Community Support

Hi @rajasekaro,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

@pankajnamekar25 Thank you for your quick response.

 

Could you please share a small sample of your input data (without any sensitive or confidential information), along with the expected output and a clear explanation of your requirement? This will help us understand your scenario better and provide an accurate solution. A few representative rows and a brief description of the logic or transformation you're expecting would be really helpful. 

 

Regards,

B Manikanteswara Reddy

pankajnamekar25
Super User
Super User

Hello @rajasekaro 

try this measure

CY PBill Amount =

VAR FullYTD =

    CALCULATE(

        [Purchase Bill Amount],

        DATESYTD('Calendar'[Date], "3/31")

    )

VAR MonthlyValue =

    CALCULATE([Purchase Bill Amount])

 

RETURN

IF(

    ISINSCOPE('Calendar'[Month]),

    MonthlyValue,

    FullYTD

)

 

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

no changes 

rajasekaro_0-1744699416238.png

 

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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