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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
dshah12
Helper II
Helper II

Regarding the aggregating datasets and modelling

I want the values of Phase to be merged into the Master so the file 20256 should have value 2777+5432 =8209 but when I filter let's say for year 2023-2024 it should give me 5432 as the amount.

 

Not able to understand how to perform any help highly appreciated !

 

Application noForecast amountMaster applocationFiscal YearClient Role
202562777null2024-2025Master
23455432202562023-2024Phase
1 ACCEPTED SOLUTION
Sahir_Maharaj
Super User
Super User

Hello @dshah12,

 

Can you please try this approach:

 

1. Create a Calculated Column

Total Forecast Amount = 
VAR CurrentApp = 'Table'[Application no]
RETURN
CALCULATE(
    SUM('Table'[Forecast amount]),
    FILTER(
        'Table',
        'Table'[Application no] = CurrentApp || 'Table'[Master application] = CurrentApp
    )
)

2. Create Measures for Filtering

Filtered Forecast Amount = 
VAR CurrentApp = MAX('Table'[Application no])
RETURN
CALCULATE(
    SUM('Table'[Forecast amount]),
    FILTER(
        'Table',
        ('Table'[Application no] = CurrentApp || 'Table'[Master application] = CurrentApp) &&
        'Table'[Fiscal Year] = SELECTEDVALUE('Table'[Fiscal Year])
    )
)
Total Forecast Amount = 
VAR CurrentApp = MAX('Table'[Application no])
RETURN
CALCULATE(
    SUM('Table'[Forecast amount]),
    FILTER(
        'Table',
        'Table'[Application no] = CurrentApp || 'Table'[Master application] = CurrentApp
    )
)

Hope this helps!


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

View solution in original post

1 REPLY 1
Sahir_Maharaj
Super User
Super User

Hello @dshah12,

 

Can you please try this approach:

 

1. Create a Calculated Column

Total Forecast Amount = 
VAR CurrentApp = 'Table'[Application no]
RETURN
CALCULATE(
    SUM('Table'[Forecast amount]),
    FILTER(
        'Table',
        'Table'[Application no] = CurrentApp || 'Table'[Master application] = CurrentApp
    )
)

2. Create Measures for Filtering

Filtered Forecast Amount = 
VAR CurrentApp = MAX('Table'[Application no])
RETURN
CALCULATE(
    SUM('Table'[Forecast amount]),
    FILTER(
        'Table',
        ('Table'[Application no] = CurrentApp || 'Table'[Master application] = CurrentApp) &&
        'Table'[Fiscal Year] = SELECTEDVALUE('Table'[Fiscal Year])
    )
)
Total Forecast Amount = 
VAR CurrentApp = MAX('Table'[Application no])
RETURN
CALCULATE(
    SUM('Table'[Forecast amount]),
    FILTER(
        'Table',
        'Table'[Application no] = CurrentApp || 'Table'[Master application] = CurrentApp
    )
)

Hope this helps!


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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