cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

display dates in a filter.

Good, I want to show the filters that I have selected and they work all except the date.

Since I can show the selected date, all the data is in the same table. I give you the example.

Aguirre_0-1652100891369.png

1 ACCEPTED SOLUTION

Hi @Aguirre ,

 

In the expression you are using the problem is that you did not close the ALLSELECTED expression try the following:

e_Fechas2 =
VAR _max =
    MAXX (
        ALLSELECTED ( BI_EXPEDIENTES_USUARIO ),
        BI_EXPEDIENTES_USUARIO[FECHA_APERTURA]
    )
VAR _mIN =
    MAXX (
        ALLSELECTED ( BI_EXPEDIENTES_USUARIO ),
        BI_EXPEDIENTES_USUARIO[FECHA_APERTURA]
    )
RETURN
    _Max & _Min

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Syndicate_Admin , Not very clear

 

new measure =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return

"From " & _min & " to " & _max

 

 

Measure = concatenatex(allselected(Date), Date[Date], " , " )



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Hello and first of all thank you.

I have achieved something, but not as you tell me, since it gives me an error, the problem I have with the allselect, I put my measurement that works, but that is not complete and I tell you, in case you can indicate the failure, as I tell you, I do not have a calendar table, but a column in the table that contains all the data.

This works but is incomplete:

e_Fechas =
WHERE _max = MAXX(F_BI_EXPEDIENTES_USUARIO, F_BI_EXPEDIENTES_USUARIO[FECHA_APERTURA])
WHERE _min = MINX(F_BI_EXPEDIENTES_USUARIO, F_BI_EXPEDIENTES_USUARIO[FECHA_APERTURA])
return "Del "&_min &" to"& _max
I think I have the problem in the maxx and in the minx

Aguirre_1-1652113793531.png

Aguirre_3-1652113888528.png

Greetings


Hi @Aguirre ,

 

In the expression you are using the problem is that you did not close the ALLSELECTED expression try the following:

e_Fechas2 =
VAR _max =
    MAXX (
        ALLSELECTED ( BI_EXPEDIENTES_USUARIO ),
        BI_EXPEDIENTES_USUARIO[FECHA_APERTURA]
    )
VAR _mIN =
    MAXX (
        ALLSELECTED ( BI_EXPEDIENTES_USUARIO ),
        BI_EXPEDIENTES_USUARIO[FECHA_APERTURA]
    )
RETURN
    _Max & _Min

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



thanks to @Syndicate_Admin

It has worked for me in this way, just comment that the 2nd variable is with MINX since it appears twice MAXX.

Greetings.

Hi @Aguirre ,

 

Sorry for the error I just wrote the first part of the variable and paste it a second time did not change it but you are correct.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors