Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello
I am strugling with the following :
I have a table 1 with following info :
Quantity | Order | FRom Date | To Date |
12 | 124 | 01/01/22 | 02/04/22 |
32 | 124 | 02/04/22 | 4/5/22 |
45 | 124 | 4/5/22 | 12/2/22 |
and a second table with a column order and a column date
How do I add a column in the second table with the value "Quantity" based on the column date ?
Order | Date | Quantity |
124 | 3/3/22 | 32 |
124 | 7/1/22 | 45 |
Solved! Go to Solution.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi,
Please check the below picture and the attached pbix file.
Quantity CC =
MAXX (
FILTER (
Table1,
Table1[Order] = EARLIER ( Table2[Order] )
&& Table1[From Date] <= EARLIER ( Table2[Date] )
&& Table1[To Date] > EARLIER ( Table2[Date] )
),
Table1[Quantity]
)
Hi,
Please check the below picture and the attached pbix file.
Quantity CC =
MAXX (
FILTER (
Table1,
Table1[Order] = EARLIER ( Table2[Order] )
&& Table1[From Date] <= EARLIER ( Table2[Date] )
&& Table1[To Date] > EARLIER ( Table2[Date] )
),
Table1[Quantity]
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |