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
Syndicate_Admin
Administrator
Administrator

Dynamic title with date filter

good

I want to create a dynamic title that is "Report for XX/YY"

In which XX is the month that I choose in a segmentation of data that I have, it is a segmentation in which I choose the month of a specific year, but the field of the date that I add to the segmentation of data is of the type XX / YY / ZZZZ, I only want to keep the month and the year, since my ranges will be monthly.

With selectedvalue (as I have done with other filters that I also have) nothing appears to me. How should it be?

Thanks a lot!!!

1 ACCEPTED SOLUTION

Hi @Syndicate_Admin,

Did you mean to show the selected month range in your measure? If that is the case, you can tyro to use the following formula:

Title =
VAR _list =
    ALLSELECTED ( Table[Date] )
VAR _min =
    MINX ( _list, [Date] )
VAR _max =
    MAXX ( _list, [Date] )
RETURN
    "LINE " & SELECTEDVALUE ( EPLinea[Line] ) & " - CRITICAL REJECTIONS IN PRIMARY CONDITIONING "
        & FORMAT ( _min, "MMM/YYYY" ) & " ~ "
        & FORMAT ( _max, "MMM/YYYY" )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Syndicate_Admin , Assume you are selecting a month from slicer which based on table having date

 

Try a new meausre

=

var _max = maxx(allselected(Date), Date[Date])

return

format(_max,"MM/YY")

Excuse me, I haven't explained myself quite well.

The problem is that I have two different graphs, to which I apply a different segmentation of data to each one (in one of them I want to give me data of the month that I choose in the segmentation and in the other the count of data of the last 6 months). These slicers are made with the same field from the same table: Batch End Date (which is of type XX/YY/ZZZZ).

I just want you to choose me the segmentation of the whole month, and I want it within a new measure that I have created which is:

Title = "LINE " & SELECTEDVALUE(EPLinea[Line]) & " - CRITICAL REJECTIONS IN PRIMARY CONDITIONING" & "
" & "MONITORING TO EVALUATE " this is where I want to put the name of the month, for example MARCH/2021
and the slicer I want to get it out of is:
acf24_0-1624883415182.png

I don't tell if I've explained myself better now....

Thanks a lot!!

Hi @Syndicate_Admin,

Did you mean to show the selected month range in your measure? If that is the case, you can tyro to use the following formula:

Title =
VAR _list =
    ALLSELECTED ( Table[Date] )
VAR _min =
    MINX ( _list, [Date] )
VAR _max =
    MAXX ( _list, [Date] )
RETURN
    "LINE " & SELECTEDVALUE ( EPLinea[Line] ) & " - CRITICAL REJECTIONS IN PRIMARY CONDITIONING "
        & FORMAT ( _min, "MMM/YYYY" ) & " ~ "
        & FORMAT ( _max, "MMM/YYYY" )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.