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
pfprado
Frequent Visitor

Get values outside the range selected

I need calculate a measure by month from a fact table, but outside the filter range, ie, I can filter the fact table and display the results in some graphics but I need a chart with the sum of data values of the table that are greater than the end date of the selected range, like a projection:

Initial date: 20160101
Final date: 20160731

 

I need the sum of data values of the table by month that are greater than 20160731:

 

Value       Year       Month
10000     2016      August
15000     2016      September
8000       2016      October

Thanks for your help.

2 ACCEPTED SOLUTIONS
AlexChen
Microsoft Employee
Microsoft Employee

Hi,

 

This is not issue of  "out of range" table. I meaned that in the formula

 

Table = SUMMARIZE(Filter(Test, Test[date] > Date(2016, 7, 31)), Test[Year], Test[Month Name], "monthAmount", sum(Test[amount]))

 

the value "Date(2016, 7, 31)"  has to be a fixed value instead of a dynamic value here. You have to calculate it manually and put it here.

Your plan to make a slicer to filter records in a table dynamically is not supported currently.

 

Best Regards

Alex

View solution in original post

Hi Alex, thanks for your help. Finally, I could generate a new table and calculate some measures from there.

View solution in original post

6 REPLIES 6
AlexChen
Microsoft Employee
Microsoft Employee

Hi,

 

We are not able to create a summarized table based on what you selected in a slicer currently.

 

I assume you have a table like below. 

 

1.png

 

You need to create a year column and a month name column from “date” column in query editor.

 

2.png

 

Now you can create a summarized table with formula below if your max selected date is 20160731.

 

Table = SUMMARIZE(Filter(Test, Test[date] > Date(2016, 7, 31)), Test[Year], Test[Month Name], "monthAmount", sum(Test[amount]))

 

3.png


The “Date(2016, 7, 31)” in the formula above can’t not be replaced with a dynamic formula  to correspond with what your selected in a slicer. So in this scenario, I suggest you generate that “out of range” table separately, or create another slicer to filter the “out of range” data.

 

Best Regards
Alex

Thanks Alex for your help. In this case I need generate a new out of range table, can you help me please?, i am new in powerbi desktop

AlexChen
Microsoft Employee
Microsoft Employee

Hi,

 

This is not issue of  "out of range" table. I meaned that in the formula

 

Table = SUMMARIZE(Filter(Test, Test[date] > Date(2016, 7, 31)), Test[Year], Test[Month Name], "monthAmount", sum(Test[amount]))

 

the value "Date(2016, 7, 31)"  has to be a fixed value instead of a dynamic value here. You have to calculate it manually and put it here.

Your plan to make a slicer to filter records in a table dynamically is not supported currently.

 

Best Regards

Alex

Hi Alex, thanks for your help. Finally, I could generate a new table and calculate some measures from there.

Greg_Deckler
Community Champion
Community Champion

Sounds like you need something along the lines of ALLEXCEPT where get rid of your "date" context filter but keep everything else.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I tried, but not works. I dont know how to use ALLEXCEPT function correctly. Can you help me?

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