Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
I have a column with a value that I need to override to zero if the date falls outside a 45 day range starting from today. Right now it only works with today’s date. Is there some way I can get it to work with a range?
Column = IF(Append1[Date]=TODAY(),Append1[Volume This Period],0)
I originally tried using a measure with a date slicer, but the totals don't calulate correctly in the matrix.
Measure Vol = IF((count('Append1'[Date]))<1,"0",(SUM('Schedule Data Entry'[Volume This Period])))Any help would be grand?
Solved! Go to Solution.
I am assuming it's 45 days forward from today
Measure:
Measure=
VAR StartDate = TODAY()
VAR EndDate = StartDate + 45
RETURN
CALCULATE(SUM(Append1[Volume This Period]),DATESBETWEEN(Append1[Date],StartDate,EndDate))
Column:
Column=
VAR StartDate = TODAY()
VAR EndDate = StartDate + 45
RETURN
IF(AND('Append1'[Date]>=StartDate,Append1[Date]<=EndDate),Append1[Volume This Period],0)
I am assuming it's 45 days forward from today
Measure:
Measure=
VAR StartDate = TODAY()
VAR EndDate = StartDate + 45
RETURN
CALCULATE(SUM(Append1[Volume This Period]),DATESBETWEEN(Append1[Date],StartDate,EndDate))
Column:
Column=
VAR StartDate = TODAY()
VAR EndDate = StartDate + 45
RETURN
IF(AND('Append1'[Date]>=StartDate,Append1[Date]<=EndDate),Append1[Volume This Period],0)
Thanks for your help Stachu! I will give these a try in the morning.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 67 | |
| 34 | |
| 32 | |
| 29 |