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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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