Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Day function not referencing dates column

I am trying to run a DAX calculation to clean up my dates. I want to create an IF function that checks if a date is on the 1st of the month, and if it is, subtracts 1 day to put it at the end of the ...
  • SpartaBI's avatar
    SpartaBI
    4 years ago

    Anonymous You are indeed in the right direction. That's why my intitial tought was to give you the code for the calculated column. You can use what I sent in the first message or create it in Power Query or in the data source.

    Please don't forget to accept the relevant message as a solution for community visibility.
    P.S. Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. 
    https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
    Give it a thumbs up over there if you liked it 🙂