Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Folks,
I am working on a req to create Rolling 90 Days sum from a table which have multiple occurances for same date.my req is I want to get sum of first all the values for every date first(example Sum of all values on the second column for feb 1 in below snip and similarly for every other date also.) I have a measure for this :
Issue: I got the sum of values for each day from the measure I mentioned above but now I am trying to work on another measure which shoud get me the sum of last 90 days for every date.
Thanks in advance
Solved! Go to Solution.
Hi @Anonymous ,
I have created a simple sample, please refer to my pbix file to see if it helps you.
Create measures.
Measure = var _90=MAX('Table'[date])+90
var _minindex=MINX(FILTER(ALL('Table'),'Table'[date]=SELECTEDVALUE('Table'[date])),'Table'[Index])
return
IF(_minindex=SELECTEDVALUE('Table'[Index]),1,0)
Measure2 =
var _90days=MAX('Table 2'[Date])+90
return
SUMX(FILTER(ALL('Table'),'Table'[date]<=_90days&&'Table'[date]>=SELECTEDVALUE('Table 2'[Date])&&[Measure]<>0),'Table'[value])
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Share data in a format that can be pasted in an MS Excel file and show the expected result very clearly.
Hi @Anonymous ,
I have created a simple sample, please refer to my pbix file to see if it helps you.
Create measures.
Measure = var _90=MAX('Table'[date])+90
var _minindex=MINX(FILTER(ALL('Table'),'Table'[date]=SELECTEDVALUE('Table'[date])),'Table'[Index])
return
IF(_minindex=SELECTEDVALUE('Table'[Index]),1,0)
Measure2 =
var _90days=MAX('Table 2'[Date])+90
return
SUMX(FILTER(ALL('Table'),'Table'[date]<=_90days&&'Table'[date]>=SELECTEDVALUE('Table 2'[Date])&&[Measure]<>0),'Table'[value])
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 63 | |
| 31 | |
| 30 | |
| 23 |