This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/dax/dax_example1.dax
Greg de Lima 4ae9e07ddc
Add new lexer for DAX (#2335)
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
2023-02-13 17:12:01 +01:00

11 lines
No EOL
315 B
Dax

/* This calculation sums sales divided
by days in the month
multiplied by current MTD
*/
Total Sales Spread = (
--This line does a calculate
CALCULATE (
SUM ( TABLE1[SALES]),
PBCS_PLAN_FCST[Scenario] = "Plan"
) / 'Days in Month'[Days in Month Value]
) * 'Current MTD'[Current MTD Value]