Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
oscaag
Frequent Visitor

Incorrect Date result from Slicer

Hello,

 

I am trying to get the date values with some IF statement from the Date Slicer, but I can't get the correct info:

 

New Columns created:

START_TIME_SLICER =
Var _Min =
    MINX(
        ALLSELECTED(outage[start_time]),
        outage[start_time])
 VAR min_date = IF (
     outage[start_time] >= _Min,
        _Min,
        outage[start_time]
        )

   RETURN
min_date
 
 
END_TIME_SLICER =
Var _Max =
    MAXX(
        ALLSELECTED(outage[end_time]),
        outage[end_time])
 VAR max_date = IF (
     ISBLANK(outage[end_time]),
        _Max,
        outage[end_time]
        )

   RETURN
max_date
 
 That's the relation of Date table con data table.
Relation.png

 

And the wrong result:

 

Incorrect data from slicer.png

 

I need to have the dates of start and end from the selected date in the slicer. 

Anyone could help me.

 

Many thanks.

Oscar

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @oscaag,

Current power bi does not support creating dynamic calculated column/table based on filter selections. They work on different levels and you can't use child to affect its parent. For this sceniaro, I'd like to suggest you use measure expression instaed.

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @oscaag,

Current power bi does not support creating dynamic calculated column/table based on filter selections. They work on different levels and you can't use child to affect its parent. For this sceniaro, I'd like to suggest you use measure expression instaed.

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.