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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
scott3387
Frequent Visitor

Problem with American date format when using selectedvalue in measure only

Hello,

 

I have a table generated with the below just for slicers/filters. The table is set to dd/mm/yyyy format

 

Dates = CALENDAR(TODAY()+1, TODAY()+28)

I also have a measure that I want to use for a dynamic title 

 

Title Date = var selecteddate = SELECTEDVALUE(Dates[Date]) return "Date: "& if(isblank(selecteddate), "All Dates", selecteddate)

Literally everywhere else in my report, dates are european style dd/mm/yyyy values but this one returns american mm/dd/yyyy.


Any ideas why and how to fix?


Thanks

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @scott3387 ,

Based on your formulas, I think you just want to show the selected date in a Card visual. If so, you could add a FORMAT function like below to show normally.

Note: The function of Format can convert values to text.  So I change the condition of isblank(selecteddate) to selecteddate = "".

 

Title Date = 
VAR selecteddate =
    FORMAT(SELECTEDVALUE ( Dates[Date] ),"dd/mm/yyyy")
RETURN
    "Date: " & IF ( selecteddate = "", "All Dates", selecteddate )

 

 2.PNG

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @scott3387 ,

Based on your formulas, I think you just want to show the selected date in a Card visual. If so, you could add a FORMAT function like below to show normally.

Note: The function of Format can convert values to text.  So I change the condition of isblank(selecteddate) to selecteddate = "".

 

Title Date = 
VAR selecteddate =
    FORMAT(SELECTEDVALUE ( Dates[Date] ),"dd/mm/yyyy")
RETURN
    "Date: " & IF ( selecteddate = "", "All Dates", selecteddate )

 

 2.PNG

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vanessafvg
Super User
Super User

i would just probably swap them around in power query are you importing the data in?  so take that column and swap the month and days around in power query.

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.