Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I have a table Table1, with RevenueDate, and Revenue
I have a slicer in report on RevenueDate. User can select range of dates, but I want to ignore Initial selected date and just provide Revenue upto end date.
Example: First date in table is 01/01/23 and Last Date is 3/20/23
If User Selects
02/02/23 and 3/15/23
I need to show Sum of Revenue Falls between 01/01/23 (ignoring 02/02/23) to 3/15/23
Apprecite your help.
Solved! Go to Solution.
@MSFTPBI Some syntax errors. I think I got all of them, extra ]'s and a missing )
REVDate =
var vMin = MINX(ALL('TABLE1'), 'TABLE1'[Revenue Date])
var vMAX = MAX('Table1'[Revenue Date])
var vTab = FILTER(All('Table1'),[Revenue Date] >= vMin && [Revenue Date]) <= vMAX)
var vResult= SUMX(vTab, 'Table1'[Revenue])
RETURN
vResult
@MSFTPBI Try:
Measure =
VAR __Min = MINX(ALL('Table'), [Date])
VAR __Max = MAX('Table'[Date])
VAR __Table = FILTER(ALL('Table'), [Date] >= __Min && [Date] <= __Max)
VAR __Result = SUMX(__Table, [Revenue])
RETURN
__Result
@Greg_Deckler getting error"The Expreession refers to multiple columns. Multiple columns cannot be convertes to a scalar value.
Here is my DAX
@MSFTPBI Some syntax errors. I think I got all of them, extra ]'s and a missing )
REVDate =
var vMin = MINX(ALL('TABLE1'), 'TABLE1'[Revenue Date])
var vMAX = MAX('Table1'[Revenue Date])
var vTab = FILTER(All('Table1'),[Revenue Date] >= vMin && [Revenue Date]) <= vMAX)
var vResult= SUMX(vTab, 'Table1'[Revenue])
RETURN
vResult
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 48 | |
| 38 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 85 | |
| 70 | |
| 38 | |
| 28 | |
| 25 |