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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Harish85
Helper II
Helper II

How to write below formula in powerbi(its in sap bo webi formula)

[Budget amount]Where(([Fiscal Period]="1") And ([Fiscal_Year_Filter] = [v_Fiscal_Year]))

3 ACCEPTED SOLUTIONS
ThomasWeppler
Impactful Individual
Impactful Individual

Measure name =
CALCULATE (
[Budget amount],
[Fiscal Period] = 1
&& [Fiscal_Year_Filter] = [v_Fiscal_Year]
)

 

I hope this solves your problem 🙂

View solution in original post

PijushRoy
Super User
Super User

Hi @Harish85 

Please try and let me know if below formula works for you in a measure

Budget Amount Measure = 
VAR SelectedFiscalYear = SELECTEDVALUE('YourTable'[Fiscal_Year])
RETURN
CALCULATE(
    SUM('YourTable'[Budget Amount]), 
    'YourTable'[Fiscal Period] = "1", 
    'YourTable'[Fiscal_Year Filter] = SelectedFiscalYear
)

or

Budget Amount Measure = 
VAR SelectedFiscalYear = SELECTEDVALUE('YourTable'[Fiscal_Year])
RETURN
CALCULATE(
    SUM('YourTable'[Budget Amount]), 
    'YourTable'[Fiscal Period] = 1, 
    'YourTable'[Fiscal_Year Filter] = SelectedFiscalYear
)



Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

Kedar_Pande
Super User
Super User

@Harish85 

Budget Amount Filtered = 
CALCULATE(
SUM('YourTable'[Budget amount]),
'YourTable'[Fiscal Period] = "1",
'YourTable'[Fiscal_Year_Filter] = [v_Fiscal_Year]
)

Replace 'YourTable' with the actual table name in your Power BI dataset

 

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

View solution in original post

5 REPLIES 5
Kedar_Pande
Super User
Super User

@Harish85 

Budget Amount Filtered = 
CALCULATE(
SUM('YourTable'[Budget amount]),
'YourTable'[Fiscal Period] = "1",
'YourTable'[Fiscal_Year_Filter] = [v_Fiscal_Year]
)

Replace 'YourTable' with the actual table name in your Power BI dataset

 

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

Hi Can you please check this formula in powerbi

 

FISCAL_YEAR_FILTER= CASE WHEN (substr(current_date,6,2)) IN ( '01','02','03') THEN (substr(current_date,1,4)-1) ELSE (substr(current_date,1,4)) END

PijushRoy
Super User
Super User

Hi @Harish85 

Please try and let me know if below formula works for you in a measure

Budget Amount Measure = 
VAR SelectedFiscalYear = SELECTEDVALUE('YourTable'[Fiscal_Year])
RETURN
CALCULATE(
    SUM('YourTable'[Budget Amount]), 
    'YourTable'[Fiscal Period] = "1", 
    'YourTable'[Fiscal_Year Filter] = SelectedFiscalYear
)

or

Budget Amount Measure = 
VAR SelectedFiscalYear = SELECTEDVALUE('YourTable'[Fiscal_Year])
RETURN
CALCULATE(
    SUM('YourTable'[Budget Amount]), 
    'YourTable'[Fiscal Period] = 1, 
    'YourTable'[Fiscal_Year Filter] = SelectedFiscalYear
)



Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





ThomasWeppler
Impactful Individual
Impactful Individual

Measure name =
CALCULATE (
[Budget amount],
[Fiscal Period] = 1
&& [Fiscal_Year_Filter] = [v_Fiscal_Year]
)

 

I hope this solves your problem 🙂

danextian
Super User
Super User

hI @Harish85 ,

 

Assuming that Budget Amount, Fiscal Period and v_Fiscal_Year are all coumns, try this as a measure:

CALCULATE(
    SUM ( 'Table'[Budget amount] ),
    'Table'[Fiscal Period] = "1",
    'Table'[Fiscal_Year_Filter] = 'Table'[v_Fiscal_Year]
)

Assuming Budget Amount is an external measure, you can just reference it.

CALCULATE(
     Budget amount],
    'Table'[Fiscal Period] = "1",
    'Table'[Fiscal_Year_Filter] = 'Table'[v_Fiscal_Year]
)

Please note that "1" is a text and so Fiscal Period column must also be a text data type.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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