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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors