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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
djmarcelobarros
New Member

TREATMENT OF DATES (DAY, WEEK, MONTH, YEAR)

Good morning people,

 

I have a precise situation to do a data filtering, it is possible to choose between day, week, month and year. I was able to from the DAX function "Date.IsInCurrentWeek" parameterize a current week, through the IF below where "LAN_DATA" is its database table date parameter: if Date.IsInCurrentWeek ([LAN_DATA]) = true then "" something else "One Current data, MON and year.

 

What Happens During the First Day of the Current Week. I Believe To Be Anywhere Possible Now For Everyone, If Possible

.imagem.png

3 REPLIES 3
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@djmarcelobarros,

This is English forum, please post question in English. In your scenario, please also share dummy data of your original table and post expected result.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Good morning people,

I have a precise situation to do a data filtering, it is possible to choose between day, week, month and year.

I was able to from the DAX function "Date.IsInCurrentWeek" parameterize a current week, through the IF below where "LAN_DATA" is its database table date parameter:
if Date.IsInCurrentWeek ([LAN_DATA]) = true then "" something else "One

Current data, MON and year. What Happens During the First Day of the Current Week.

I Believe To Be Anywhere Possible Now For Everyone, If Possible

@djmarcelobarros,

I am not very clear about your requirement. Do you want to dynamically show different measures(current day, current year, current month,curent week) based on slicer selection? If so, please review the following blog.

http://visualbi.com/blogs/powerbi/dynamic-measure-selection-power-bi/



Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors