Forum Discussion
i Have Problem with date table
- 3 years ago
thanks for all
i got it
the problem solved by make measure to make filter by it to display date for invoice date in the data table
DAX :SELECTED DATE =VAR SelectedInvoiceDate = SELECTEDVALUE('Date'[Date])VAR MINDATE =MINX(UNION('01Riyadh','01Riyadh-2','02BUR1','02BUR1-2','03BUR2','03BUR2-2','04RAFHA','04RAFHA-2'),[INVOICE_DATE])VAR MAXDATE =MAXX(UNION('01Riyadh','01Riyadh-2','02BUR1','02BUR1-2','03BUR2','03BUR2-2','04RAFHA','04RAFHA-2'),[INVOICE_DATE])RETURNIF(AND(SelectedInvoiceDate >= MINDATE,SelectedInvoiceDate <= MAXDATE),1,0)-----
I generate date table by bravo tools
because I have more column has dates
like birth date
invoice date
discharge date
the tools get all date availabile in my data tables
and 1921 mybe a birth date of old patient
hanygameel, Idrissshatila with both kindness and gentleness suggested that the issue relates to your model and that you should put the effort in to identify and eliminate any duplicates, ensure table relationships are correct, and ensure the calendar table satisfies the needs of the model. some_bih also voiced the same concerns and that you should spend some quality time with your model. Adding your work-in-progress Power BI Desktop file to your post would be helpful at this time.