Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi i have a calendar table and I'd like to pull the iteration from another table into a new field or measure
Here's a screen print of my objective
So if the date on the left is between 12/26/18 -01/08/19, I want to reference the Iteration-Original,which is 2018Q4-IP
if the date on the left is between 01/09/19 -01/29/19, I want to reference the Iteration-Original,which is 2019Q1-1
How do i write a measure or create a column to do this?
If a column, would it be better to create it as a power query column or a dax column?
I'm thinking that a new column where the iteration-Original can be added, as compared to a measure, but not sure.
Open to any suggestion.
Thanks, Steve
Solved! Go to Solution.
@Anonymous
A column like this should get you what you are looking for.
Iteration =
VAR _Date = [Date]
RETURN
CALCULATE(
MAX ( Iterations[Iteration-Original] ),
Iterations[IterationStartDate] <= _Date && Iterations[IterationEndDate] >= _Date
)
@Anonymous
A column like this should get you what you are looking for.
Iteration =
VAR _Date = [Date]
RETURN
CALCULATE(
MAX ( Iterations[Iteration-Original] ),
Iterations[IterationStartDate] <= _Date && Iterations[IterationEndDate] >= _Date
)
Your code made the difference. I did make a few modifications but your code acted as a template and I can use it going forward. Thanks!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
80 | |
59 | |
35 | |
35 |
User | Count |
---|---|
100 | |
60 | |
56 | |
46 | |
41 |