- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Assign measurement between date range
Hello!
I have a table with the following columns:
In which a valid price date range between Date1 and Date2 is indicated. What you are trying to do is create a table/column from 01/01/2022 to 31/12/2022 assigning the price corresponding to the range that is established. Example:
Greetings.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Syndicate_Admin ,
Please create the new table.
Dates =
ADDCOLUMNS (
CALENDAR ( MIN ( 'Table'[Date1] ), MAX ( 'Table'[Date2] ) ),
"Price",
CALCULATE (
SUM ( 'Table'[Price] ),
FILTER ( 'Table', 'Table'[Date1] <= [Date] && 'Table'[Date2] >= [Date] )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I have a job in pbi where based on the maximum date of the context I must generate 8 months ahead and make some estimates using the data of the selected range of dechas. I made a separate calendar to use it in the second matrix q is generated from the maximum date, the problem is q grabs the maximum date of the main calendar and not the max date of the q context is the q I need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Syndicate_Admin ,
Please create the new table.
Dates =
ADDCOLUMNS (
CALENDAR ( MIN ( 'Table'[Date1] ), MAX ( 'Table'[Date2] ) ),
"Price",
CALCULATE (
SUM ( 'Table'[Price] ),
FILTER ( 'Table', 'Table'[Date1] <= [Date] && 'Table'[Date2] >= [Date] )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
09-16-2024 02:08 AM | |||
08-15-2024 04:29 AM | |||
09-03-2024 01:57 PM | |||
10-09-2024 06:29 AM | |||
04-08-2024 10:53 AM |
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |