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! Get ahead of the game and start preparing now! Learn more
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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 161 | |
| 132 | |
| 117 | |
| 79 | |
| 54 |