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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Kudoed Authors