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
kg_iconic
Frequent Visitor

Date/Time Parameter drops Time portion of the string

I'm setting up a pair of parameters that are set to Date/Time. However, whenever I put a string in like 1/1/2024 12:00:00 AM and navigate away from the parameter (either to another parameter or by clicking ok), it automatically truncates my entry to just the date with a trailing space (ie. 1/01/2024 ) 

 

The parameter works and acts just fine on a colleagues machine, but refuses to on mine. I've checked all the regional settings and everything looks very standard. I've made sure I'm up to date. What am I missing here? 

 

Thank you in advance!

1 ACCEPTED SOLUTION

@kg_iconic 

Out of interest, are you still having an issue with this parameter?

Here are a few things I would check if I were debugging this.

 

1. Does the parameter behave as a valid datetime value when referenced by other queries?

2. Could you post a screenshot of the Manage Parameter dialog box and the M code from Advanced Editor? I would expect something like below (with possible differences due to regional settings):

OwenAuger_0-1742768784392.png

#datetime(2024, 1, 1, 0, 0, 0) meta [IsParameterQuery=true, Type="DateTime", IsParameterQueryRequired=true]

3. If you create another query by referencing the parameter directly, does it show the expected datetime value, similar to this?

OwenAuger_1-1742768903398.png

4. If you create another query to inspect the parameter's type, e.g. = Value.Type(Parameter), does it show datetime, similar to this?

OwenAuger_2-1742768973915.png

 

I've attached my PBIX in case that helps in any way.

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

7 REPLIES 7
v-achippa
Community Support
Community Support

Hi @kg_iconic,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @govind_021 for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user resolved your issue? or let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @kg_iconic,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided or by the super user resolved your issue?
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @kg_iconic,

 

We wanted to kindly follow up to check if the solution I have provided or by the super user resolved your issue?
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

govind_021
Super User
Super User

Hi @kg_iconic 

It sounds like the issue might be related to local settings or software configurations. Here are a few things you can check:

  1. Regional & Language Settings: Even if they seem standard, compare them with your colleague's settings to ensure there are no differences in date/time formats.

  2. Power BI Version: Since it works fine on your colleague’s machine, verify that both of you are on the same Power BI version. If not, try updating to the latest version.

  3. Data Type in Parameter Settings: Double-check that the parameter is explicitly set to "Date/Time" rather than just "Date." Sometimes, even small changes in data type can cause this behavior.

  4. Formatting in Source Data: If your parameter is pulling from an external source (e.g., Excel, SQL), check whether the data format includes the time portion properly.

  5. Clearing Cache & Restarting: Try clearing Power BI's cache and restarting the application to see if it resolves the issue.

  6. Test on a New File: Create a new Power BI file and set up the same parameter from scratch. If it works fine there, the issue might be specific to your existing PBIX file.

    Best Regards
    Govind Sapkade ( Microsoft Certified Data Analyst , PL 300 Certified , DP 600 Certified Fabric Analytics Enginner )
    Let's Connect
    Linkdin - www.linkedin.com/in/govind-sapkade-845104225
    Youtube - http://www.youtube.com/@govind_dataanalyst

I've attempted all of these steps and to no success. 

@kg_iconic 

Out of interest, are you still having an issue with this parameter?

Here are a few things I would check if I were debugging this.

 

1. Does the parameter behave as a valid datetime value when referenced by other queries?

2. Could you post a screenshot of the Manage Parameter dialog box and the M code from Advanced Editor? I would expect something like below (with possible differences due to regional settings):

OwenAuger_0-1742768784392.png

#datetime(2024, 1, 1, 0, 0, 0) meta [IsParameterQuery=true, Type="DateTime", IsParameterQueryRequired=true]

3. If you create another query by referencing the parameter directly, does it show the expected datetime value, similar to this?

OwenAuger_1-1742768903398.png

4. If you create another query to inspect the parameter's type, e.g. = Value.Type(Parameter), does it show datetime, similar to this?

OwenAuger_2-1742768973915.png

 

I've attached my PBIX in case that helps in any way.

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Hi @kg_iconic,

 

Thank you for trying the suggested steps, 

  • Once check the Default Date formatting in Regional settings in power bi, temporarily switch the Local and restart the power bi and check if the issue persists.
  • Even though regional settings are fine some applications override them, so check the system level Date/Time formats and compare with your colleague’s system and make changes accordingly.
  • If possible i request you to please try the same PBIX file on a third machine to compare behavior, if the issue is still occurring.

If the issue persists, please check for any error messages and if possible please share the pbix file. let us know if you need any further assistance.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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