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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

Date selected as custom entry

Good morning.

Sorry for my clumsiness, I have a table with date and quantity, I have measurements that calculate the average and standard deviation of the last 31 days from the current date.

Using parameters I can change the base date and instead of the current date, I can move it 1,2,3,etc days, if today is 18/01/2022, by default it gives me those measurements for the max dates 18/01/2022 and min (18/01/2022)-31, but with parameter 3 part of 15/01/2022 until the previous 31 days.

It is very uncomfortable, since to visualize the data I have to select the parameter and then the date segmentation to match today()-parameter.

I am not able to make the date take it from a segmentation and with SELECTEDVALUE assign a start date of the measure, it always gives me the default value assigned in SELECTEDVALUE,I want to do it in a single step.

any ideas?, thanks

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

Hi @Syndicate_Admin ,

 

Have you tried the What if parameters? You can change the value of this parameter directly in the slicer. 

 

vkkfmsft_0-1642746266304.png

 

Create the following measures to calculate the maximum date and minimum date separately.

 

MaxDate = MAXX ( ALLSELECTED ( Dates ), Dates[Date] ) - [Parameter Value]
MinDate = [MaxDate] - 31

vkkfmsft_1-1642746683126.png  vkkfmsft_2-1642746696691.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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-kkf-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Have you tried the What if parameters? You can change the value of this parameter directly in the slicer. 

 

vkkfmsft_0-1642746266304.png

 

Create the following measures to calculate the maximum date and minimum date separately.

 

MaxDate = MAXX ( ALLSELECTED ( Dates ), Dates[Date] ) - [Parameter Value]
MinDate = [MaxDate] - 31

vkkfmsft_1-1642746683126.png  vkkfmsft_2-1642746696691.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I try it and I tell you.

Thanks a lot

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors