Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi i'm trying to implement this Sql statment in power bi SUM(amount * coeff) where tdate < calendar[date]
So basicly amount, coeff and tdate are in one table and caledar[date] is another table no luck in querry edittor and also in creating new mesure.
Solved! Go to Solution.
Hi @Liklikadze ,
If you want a column to do it, you could refer to the following DAX:
Column =
'Table'[amount]*'Table'[coeff]
Then create relationship between this table and calendar table based on date column.
Now you could use SUM() function or set it in the field to get the result. And you could use date as a slicer to filter the data.
Hi @Liklikadze ,
If you want a column to do it, you could refer to the following DAX:
Column =
'Table'[amount]*'Table'[coeff]
Then create relationship between this table and calendar table based on date column.
Now you could use SUM() function or set it in the field to get the result. And you could use date as a slicer to filter the data.
what is expected value of calendar date when you want to say tdate < calendar[date]
For measure
calculate(SUMX(table,table[amount] *table[coeff]),filter(table,table[tdate] < max(calendar[date] ))
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 44 | |
| 34 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 137 | |
| 118 | |
| 58 | |
| 40 | |
| 35 |