Forum Discussion
Issue with measure
- 3 years ago
I don't know what is going on with the calculated column, but you can get the daily figures by amending your calculation item to be
VAR numDaysBefore = SELECTEDVALUE ( 'Days Before Today'[Days Before Today] ) VAR numDaysAfter = SELECTEDVALUE ( 'Days After Today'[Days After Today] ) VAR baseDate = TODAY () VAR startDate = baseDate - numDaysBefore VAR endDate = baseDate + numDaysAfter VAR datesToUse = DATESBETWEEN ( DateTable[Date], startDate, endDate ) VAR selectedDate = SELECTEDVALUE( DateTable[Date]) RETURN IF( selectedDate IN datesToUse, CALCULATE( SELECTEDMEASURE(), KEEPFILTERS( datesToUse ) ) )
Hi John, I just discussed with a Microsoft MVP who helped me explain why the calculated column implicit measures stopped working. This is actually a feature in calculation groups - implicit measures are discouraged whenever you have a calculation group created. So Tabular editor sets your Option for Discourage Implicit Measures to "True" and the implicit column aggregations will disappear, as well as the "sigma" sign next to them to signify that implicit aggregations are gone.
So finally I understand what's happening now!
That's really interesting. I didn't know that option existed, but I'm going to start using it so that I don't have to manually go through and turn off the implicit measures. Thanks for the update.
- ValeriaBreve3 years agoPost Partisan
you're welcome! Thanks to Tommy Puglia Puglia BI Consulting - Power BI for helping me on this one 🙂