date parameter
2 TopicsHow to use a user input date serial number in another calculated column
Hi! I wanted to let the user to input a date and do a column calculation based on that date. To achieve this, I added a parameter slicer, where the user input number would be the serial number of the target date, as we are only allowed to input a whole/decimal number but not a date as a parameter. The parameter table was Base Date, the series column was Date (Serial Number), and the selected value was captured in Base Date Value. Base Date Value = SELECTEDVALUE('Base Date'[Date (Serial Number)]) However, when I used Base Date Value in calculation of a column, the calculation seemed not working: Here, I want to compute, under each contract, the total spend amount of invoices whose Final Approval Month (which is a date in fact) is within the 365 days before the BASE DATE selected by user. I calculate the difference between the serial number of the approval date and the input serial number and compare it with 0 and 365. Basically, the calculation gives me a blank column. Just for testing purpose, if I use TODAY() as the base date and compute the column as followed, it works and gives me some values. How can I use the Best Date Value in the calculation of the column to achieve my goal here?Solved1.1KViews0likes4CommentsWeekly Date-Start Date and End Date
Hi All, I am trying to create weekly range column(from monday to saturday) using addtional column week start date and week end date, but then realized that the start date not started in first date of the month as well as the week and date not end in last of the month. Here the dax i am used : Start date : Week Start Date = Sheet1[Date] - WEEKDAY(Sheet1[Date],2)+1 end date: Week End Date = Sheet1[Date] - WEEKDAY(Sheet1[Date],2)+6 Basically, I want to start date always in the first day of the month basically day 1(for instance 1 september) and end date in 31 or 30 (for instance 30 september). Anyone can help with this, please also see my atatched pbix here : https://drive.google.com/file/d/143dko9boxjZuBkhxBTQQlhOiWW0t3HEP/view?usp=sharing I hope there were an expert can help, I am quite new in the Power BI.Solved1.9KViews0likes5Comments