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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
atowriss1
Advocate I
Advocate I

DAX Formula Help

I am trying to add a Forecasted Amount to a matrix.  I have a tabale that houses Forecast Only, and it has an active relationship between MthEnd Date in itself and Date on my Date_Table.  The forecast file has a forecasted month column and a ME date column.  The ME date is when the forecast was completed and the forecasted month is the future months.  I have an inactive relationship between Forecasted Month and Date[Date].  I also have an inactive relationship between Actuals[Category] and Forecast Only[Category].

 

In my matrix, I want to show the remaining 2022 Forecast, based on the date slicer choice.  So, if I choose Aug 2022, I want to see Sept-Dec totaled in the forecast.

 

 

I have tried these 2 formulas:

 

Industry $$ FC Only = calculate(sum('Industry FC Only'[Forecast]),USERELATIONSHIP('Industry FC Only'[Category],'Industry Actuals $$'[Category]),'Dates_Table Indep'[Date]

***This shows the same total, no matter what

 

Industry $$ FC Only = calculate(sum('Industry FC Only'[Forecast]),USERELATIONSHIP('Industry FC Only'[Category],'Industry Actuals $$'[Category]),USERELATIONSHIP('Industry FC Only'[Forecasted Date],'Dates_Table Indep'[Date]))

***This show blank, no matter what.

Any help on how I can get it to calculate correctly?

 

Thanks

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @atowriss1 ,

 

Based on your description, you want data after selecting a certain date.
First, for custom required date presentations, we can't associate our fact table with our date table.
We can use the MIN() function to get the date selected by the slicer, and then create a new measure to determine that it is greater than the sum of the date, less than the return of the date BLANK(), and then you can implement your needs.

If this method does not help you, you can provide your sample data in the form of a table or a .pbix file, and provide sample output data in the form of a table so that we can better help you.

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.