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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jostnachs
Helper IV
Helper IV

showing date as range in the table

Hi All I have a requirement to show my date column as a range in a table instead of single date. how can I do that?

jostnachs_0-1731421685164.png

any help please

1 ACCEPTED SOLUTION

Works like a charm! thank you for the quick help 

jostnachs_0-1731428265033.png

 

View solution in original post

11 REPLIES 11
Laxmanjatoth
Resolver I
Resolver I

Please see the screenshot above for further clarification. The task is simple: Create a single DAX measure that combines the dates into a range, then drop that measure into the table visual. That's it!"

Laxmanjatoth_0-1731424617886.png

 


Date_Range_Measure =
VAR MinDate = MIN('YourTable'[StartDate])
VAR MaxDate = MAX('YourTable'[EndDate])
RETURN
FORMAT(MinDate, "yyyy-mm-dd") & " - " & FORMAT(MaxDate, "yyyy-mm-dd")

Laxmanjatoth
Resolver I
Resolver I

Hey man , 

Laxmanjatoth_0-1731424042545.png

Please see the screenshot above for further clarification. The task is simple: Create a single DAX measure that combines the dates into a range, then drop that measure into the table visual. That's it!",please consider if my req is reached ,otherwise let me know .

 

 


Date_Range_Measure =
VAR MinDate = MIN('YourTable'[StartDate])
VAR MaxDate = MAX('YourTable'[EndDate])
RETURN
FORMAT(MinDate, "yyyy-mm-dd") & " - " & FORMAT(MaxDate, "yyyy-mm-dd")

 

Kaviraj11
Super User
Super User

I'm getting the expected output - , do you have relationship created with a date or calendar table, which date column are you using in the between slicer?

Kaviraj11_0-1731423194767.png

 




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

Proud to be a Super User!





jostnachs_0-1731424037883.png

effective date is my date slicer which is in V_DimPolicy and i created calculated column in the same table. I am using all the fields from the same table in the table visual as well. The formula is a sbelow

jostnachs_1-1731424106486.png

 

 

I would also suggest you to create a Date Dim Table 

Design guidance for date tables in Power BI Desktop - Power BI | Microsoft Learn




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

Proud to be a Super User!





Can you create a measure instead witht the same DAX?




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

Proud to be a Super User!





Works like a charm! thank you for the quick help 

jostnachs_0-1731428265033.png

 

hey ,

 

 

its not working 

Laxmanjatoth_0-1731425073812.png
We build this measure since we are unable to accomplish this in direct tables, and it is causing errors when we create the tables. 

which dax ? with your dax ?

Kaviraj11
Super User
Super User

Create a Calculated Column: 

DateRange = 
VAR StartDate = MIN('YourTable'[Date])
VAR EndDate = MAX('YourTable'[Date])
RETURN StartDate & " - " & EndDate

 




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

Proud to be a Super User!





Wonderful! but that is returing all the values in my list not the current selection.anyh thoughts please

jostnachs_0-1731422639846.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors