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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.