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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ankita_7
Helper II
Helper II

Create bridge data using start date to end date column for particular resident no

I am joining multiple tables and getting the result where there are cono,resno, date (startdate) ,enddate and admit_disch columns. I have a table that stores the result of the joins.I have attached a screenshot of the data sample for your reference. I have also attached screenshot of the query which I'm using to get this result.

 

I want cono,resno, date(startdate),enddate,admit_disch columns as it is but I want extra column for dates between startdate and enddate. Like as you can see in the query I have passed a date between start date and end date so may be that date not there in start or end date column but it is between the range of start and end date for a particular resno.

 

So how can we create a range of dates in a new column between start and enddate for that particular resno and cono. So that rows will replicate until enddate is reached for that particular resno. Then for the next resno again from start date to end date all range will be created in a newly created column and other all columns like resno cono will just be the same.

 

In this way I want to create a bridge data between two separate dates for that particular resno cono combination on powerbi.

 

Can anyone please help me with problem statement?

 

Thanks much in advance!

query result with sample data.PNG

 

 

3 REPLIES 3
parry2k
Super User
Super User

@ankita_7 I would suggest to paste sample data with expected output. Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi,

 

I have posted an image along with the issue deatils. Please check the image attached with the topic.

 

Thanks

@ankita_7if you cannot post sample data with the expected output, it is fine. Unfortunately, I don't have time to decode SQL queries in the image. I'm sure someone will able to help. Good luck!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.