Forum Discussion
Anonymous
6 years agoNot applicable
Adding days since from a SQLdb Report
Good Morning PowerBI! I have a report that queries a sql db directly and noticed if I added tables, it changes the type of report which will download all the tables which takes a while. I was...
v-lionel-msft
6 years agoCommunity Support
Hi Anonymous ,
Has your problem been solved?
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
v-lionel-msft Hi Lionel,
I actually figured it out. On a direct query database, if you use a measurement it will achieve what you need and in my case, it was days from a certain field.
Difference = DATEDIFF( *Table*[*Field*], TODAY(), DAY)adding this measurement allowed me to calculate the days passed from *field* (this was a date entered) without changing it from direct query.I added this for a group of folks who wanted to see immediate changes (refresh button mashers).Hopefully this may help other folks dealing with refresh mashers as well.