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
arun90
Helper I
Helper I

How to get opening date

my data has 3 dates(01-01-2023,02-01-2023,03-01-2023) in row but user select slicer in date between (02-01-2023 to 03-01-2023) then 01-01-2023 has to show 'opening' else 02-01-2023, 03-01-2023 in power bi

1 ACCEPTED SOLUTION

pls see the attachment below

11.PNG

 

Appreciate your kudos. if my solution is helpful, pls mark it as an accepted solution. Thanks





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

Proud to be a Super User!




View solution in original post

34 REPLIES 34
arun90
Helper I
Helper I

Hi @ryan_mayu 

 

i have faced some issue from your solution ,i attached the original data set for your reference.

 

arun90_0-1710304671981.pngarun90_1-1710304702705.png

 

 

@arun90 

do the group by in the PQ

11.PNG

 

then each data will only have one row.

 

the rest steps are the same

12.PNG





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

Proud to be a Super User!




danextian
Super User
Super User

Hi @arun90 ,

 

Can you please clarify? If the user selects dates between 02-01-2023 to 03-01-2023 what date do you expect as opening? And what do you mean by "else 02-01-2023, 03-01-2023"?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and Iโ€™ll forget; show me and I may remember; involve me and Iโ€™ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @danextian ,

 My slicer have between dates,  i select some between dates my table docdate have to show less than of my date values show "opening" rest all have to show between dates,i attached screen shot for you reference.

Thanks.

arun90_0-1709553190939.png

 

 

 

maybe try 

if (max(document date )<min('date) ,"opening", max(doucment date))





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

Proud to be a Super User!




hi @ryan_mayu 

I need between dates for other than minimum date.

could you pls provide some sample data(not screenshot)and the expected output





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

Proud to be a Super User!




@arun90 

i can't open the link





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

Proud to be a Super User!




@ryan_mayu Shall i share screen shot.

ok, pls also provide the expected output





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

Proud to be a Super User!




@ryan_mayu SAMPLE

arun90_0-1709713193912.png

CONCEPT

arun90_1-1709713239364.png

 

so if we select 1/4, the opening will be 1/3? and the qty is 10040?





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

Proud to be a Super User!




@ryan_mayu 

This concept the client use there ERP Software.

@ryan_mayu Yes .

pls see the attachment below11.PNG





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

Proud to be a Super User!




@ryan_mayu Thank you so much .it will work for only single date in slicer but its not working with between dates in slicer .

if we select 1/3 - 1/6 ,what the expected output. pls also provide it





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

Proud to be a Super User!




@ryan_mayu it will get the below data only

arun90_0-1709721346963.png

 

pls see the attachment below





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

Proud to be a Super User!




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