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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Harish85
Helper I
Helper I

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
Resident Rockstar
Resident Rockstar

@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
Resident Rockstar
Resident Rockstar

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










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


Proud to be a Super User!









"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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.