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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
thiagocamillo
Helper I
Helper I

Fixed sliced date in a column without chage by row context

Hi,

I need help to fixed a date sliced on a colum without change contex by rows.

I tried ALL, ALLSELECTED, ALLEXCEPTED.... but i did't have the expected result.

I would appreciate if anyone can help

 

-----------------
Calc. Data de Referencia (IRC) =
var vIS =
CALCULATE(
MIN(DimData[Date]),
ALLSELECTED(DimData[Date])
)
return
vIS"

------------------

thiagocamillo_1-1655724373089.png

 

thiagocamillo_2-1655724410106.png

thiagocamillo_3-1655724434521.png

 

 

 

1 ACCEPTED SOLUTION
thiagocamillo
Helper I
Helper I

3 REPLIES 3
thiagocamillo
Helper I
Helper I

For the solution of this case I wached this video Power BI From and To Date Filtering with One Slicer - YouTube

  and before pubished this arcticle to my especific preoblem.

Modelo para analise de dados em Power BI (DAX) analisando o contexto de intervalo de tempo ou duas d...

thiagocamillo
Helper I
Helper I

Hi, @amitchandak 

thanks but it still didn't work as expected, the date is now with the general minimum, not following the slicer. (Ex. Slicer 01/04/2022 and data 01/01/2021 (Minimum of dimdata)

 

 

amitchandak
Super User
Super User

@thiagocamillo , try like

 

Calc. Data de Referencia (IRC) =
var vIS =
CALCULATE(
MIN(DimData[Date]),
ALLSELECTED(DimData)
)
return
vIS

 

or


Calc. Data de Referencia (IRC) =
var vIS =
CALCULATE(
MIN(DimData[Date]),
ALLSELECTED()
)
return
vIS

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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