please help me to create the calculated column to get the date values based on Status column values.
For example, in the table, I'm having data like below
and in power bi date slicer I need to display like below
the calculated column like =
Datefilter = IF(datetable[Status]="YES",datetable[Startdate],datetable[EndDate])
if status is yes then from date should pick from startdate field and To date should pick the enddate column
The enddate column will always have sysdate value
help me how to achieve this
Is it the slicer that isnt working or the calculated column ( that one looks fine ).
I think that you need to have the calculated column set to the right data type. In this case date to be able to have the between date slicer available.
If I use start date filed in date slicer it displays as
in To-date how to pass the end date value otherwise system date value, as I'm using direct query mode I couldn't create the custom table, now as per my requirement how to create the calculated column.
whether that calculated column will filter my data if I create the relationship with other tables?
Date table is one table where start date, end date, qtr, month, status presents and other tables have date column so I have created the relationship between date table and then another few tables.
The Calculated column where I need to create is in the Date table
The Datasource is oracle table
2.customertable(table name)-- has some fields in addition date column which will be having April, may so and so data but in date filter i need a column where it should take from-date from the period table and todate as system date.
here in table visual for customer table, I have used the date filter from the period table, as it is in between Apr1st to Apr11 those records only should display in the table visual
How does your relationship look like in Power BI and in Oracle. Seems like the relationship is not correct at the moment between date and customer. As to your calculated column it shouldnt be a problem to create one as you did in your first post here.
Can you see your relationships in Power BI at all at the moment?
We're excited to announce our first cross-community 'Can You Solve These?' challenge!
Visit our Community Blog for articles, guides, and information created by fellow community members.
Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.
We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.