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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MHTANK
Helper III
Helper III

Value of selected minimum and maximum date

This is my Data:

1_Que.png

This is my report:

report.png

These are my calculations:

Max_Date_ = MAX('Sheet1 (2)'[Date])
Max_Date_Avg_ = CALCULATE(AVERAGE('Sheet1 (2)'[Value]), 'Sheet1 (2)'[Date] = MAX('Sheet1 (2)'[Date]))
Min_Date_ = MIN('Sheet1 (2)'[Date])
Min_Date_Avg_ = CALCULATE(AVERAGE('Sheet1 (2)'[Value]),  'Sheet1 (2)'[Date] = MIN('Sheet1 (2)'[Date]))
 
In the report when I select two date from slicer there is no value for "A" category of date "24-January-2023" then why value comes "12.00" in table. There I want blank.
1 ACCEPTED SOLUTION
v-weiyan1-msft
Community Support
Community Support

Hi @MHTANK ,

 

Based on the sample and description you provided, Please try the following steps:
1.You can create a Calculated table.

DateTable = VALUES('Table'[Date])

vweiyan1msft_0-1709087766978.png

There is no relationship between the two tables.

vweiyan1msft_1-1709087781448.png

2. Use the following code to create Measure.

Min_Date_ = MIN('DateTable'[Date])
Min_Date_Avg_ = 
CALCULATE (
    AVERAGE ( 'Table'[Value] ),
    FILTER ( 'Table', 'Table'[Date] = [Min_Date_] )
)
Max_Date_ = MAX('DateTable'[Date])
Max_Date_Avg_ = 
CALCULATE (
    AVERAGE ( 'Table'[Value] ),
    FILTER ( 'Table', 'Table'[Date] = [Max_Date_] )
)

The field of the slicer is from DateTable. When you select "1/24/2023", "1/30/2023" in the slicer, Result is as below.

vweiyan1msft_2-1709087958919.png

For further details,please find attachment.


Best Regards,
Yulia Yan


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

6 REPLIES 6
MHTANK
Helper III
Helper III

My problem is solved. Thank you very much @v-weiyan1-msft  and all

v-weiyan1-msft
Community Support
Community Support

Hi @MHTANK ,

 

Based on the sample and description you provided, Please try the following steps:
1.You can create a Calculated table.

DateTable = VALUES('Table'[Date])

vweiyan1msft_0-1709087766978.png

There is no relationship between the two tables.

vweiyan1msft_1-1709087781448.png

2. Use the following code to create Measure.

Min_Date_ = MIN('DateTable'[Date])
Min_Date_Avg_ = 
CALCULATE (
    AVERAGE ( 'Table'[Value] ),
    FILTER ( 'Table', 'Table'[Date] = [Min_Date_] )
)
Max_Date_ = MAX('DateTable'[Date])
Max_Date_Avg_ = 
CALCULATE (
    AVERAGE ( 'Table'[Value] ),
    FILTER ( 'Table', 'Table'[Date] = [Max_Date_] )
)

The field of the slicer is from DateTable. When you select "1/24/2023", "1/30/2023" in the slicer, Result is as below.

vweiyan1msft_2-1709087958919.png

For further details,please find attachment.


Best Regards,
Yulia Yan


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

MHTANK
Helper III
Helper III

report1.png

When I select "21-Jan-2023" to "31-Jan-2023" then in category "B", there is no value in Data for "21-Jan" , then why come "4.00"?

MHTANK
Helper III
Helper III

No, this is not work, same problem again.

Hi @MHTANK 

If you bring directly Date column from your table into Slicer
Set the Slicer Seeting as Between
What is the issue you are facing?




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





PijushRoy
Super User
Super User

Hi @MHTANK 

Why you are not using Old Slicer with Between Date Range with Slider

PijushRoy_0-1709032664812.png.

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors