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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
PRamashe
Frequent Visitor

Show custom Date range based on the value selected in another column

@amitchandak @parry2k @Greg_Deckler ,

 

I have this requirement, where I need to show the Column Header with Date Range as start of the selected month and end date when the current value in another column changes. Also, I have to show the Date Range for the start of the date  and end date as end of the selected month for the new value as well. Any help with the "Date Range" DAX measure is much appreciated.

Example: Below are the tables

Table A Table B
Rate Date
0.5 7/1/2023
0.5 7/2/2023
0.5 7/3/2023
0.5 7/4/2023
0.5 7/5/2023
0.5 7/6/2023
1.2 7/7/2023
1.2 7/8/2023
1.2 7/9/2023
1.2 7/10/2023
1.2 7/11/2023
1.2 7/12/2023
1.2 7/13/2023

 Result:

 Code 0.5%Code 1.2%
Date Range7/1/2023 - 7/6/2023  7/7/2023 - 7/31/2023
CategoryTotal Accounts     Total BalanceTotal Accounts     Total Balance
A  
B  
7 REPLIES 7
parry2k
Super User
Super User

@PRamashe if you read my question, it is not about the rate, it is about the date.

 

Again question is, one date will always have one rate regardless if it is in multiple rows but it will never be two different rates.



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.

@parry2k .Yes. That's correct

@parry2k Sorry, I understood your previous question differently. 
Yes, One date will always only one Rate

parry2k
Super User
Super User

@PRamashe ok, one date will always have only one rate? 



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.

@parry2k No, same rate will be there for many dates/months. The requirement is based on this. I need to calculate start date and end date for a particular rate in the selected month

PRamashe
Frequent Visitor

@parry2k , A and B are related with Many to One relationship with a Date column in both

parry2k
Super User
Super User

@PRamashe how table A and B are related?



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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.