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
YDi
New Member

How to show Data Grouped by User Defined Date Range? (in table visual)

How to show Data Grouped by User Defined Date Range?

 

Sample file attached. 

 

The user is selecting 2 time ranges and I am doing some calculations to show the data, but the problem is that I am unable to group the data in the user-defined time ranges and showing up as 1 row for each date. 

 

SamplePBIXForTimeFrame 1.pbix

YDi_1-1711382211101.png

YDi_0-1711382189848.png

 

 

4 REPLIES 4
ExcelMonke
Super User
Super User

Hello,
Not an expert like the folks tagged below, but here is something to get you started. 


Have you considered the following:

  • Wrapping your NonProd and Prod Counts into a COUNTX/SUMX function?
  • Concatenating your Date windows. E.g.:

 

CreatedDate_NonProd = 
CONCATENATE(MIN('Table'[NonProdDate]),
CONCATENATE("-",MAX('Table'[NonProdDate]))​

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thanks - I can concatnate - that's not an issue. Problem is more with how to sum the numbers as I am counting the rows with a certain measure value. 

Consider using a mix of Variables in the SUMMARIZE table function. Each column can be a calculation NonProdCounts and Prod Counts respectively





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Dixy
Frequent Visitor

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