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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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