So i have this DAX here and I want to be selecting current Quarter automatically instead of manually changing it every time what should I change?
Solved! Go to Solution.
@CharlesMS Try:
Target =
VAR __Quarter = "Q" & QUARTER(TODAY())
VAR __Result =
Calculate(SUM('TABLE'[Budget])/12, FILTER( TABLE,'TABLE'[Year]=2018 && 'TABLE'[Quarter]=__Quarter))
RETURN
__Result
@CharlesMS Try:
Target =
VAR __Quarter = "Q" & QUARTER(TODAY())
VAR __Result =
Calculate(SUM('TABLE'[Budget])/12, FILTER( TABLE,'TABLE'[Year]=2018 && 'TABLE'[Quarter]=__Quarter))
RETURN
__Result
I get the following error when I use this now:
MdxScript(Model) (1427,67) Calculation error in measure 'Table'[Measure]: DAX comparison operations do not support comparing value of type Text with value of type integer.
Consider using the Value or format function to convert one of the values.
So my measure is :
The column Year is dax like this:
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
104 | |
58 | |
45 | |
29 | |
24 |
User | Count |
---|---|
133 | |
94 | |
75 | |
44 | |
41 |