Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I am having a problem in this measure. It says in the report: A table of multiple values was supplied where a single value was expected. So my target is to switch the measures when the invoice months is (Jan,Feb,Mar). The error pop-up when there is no selected month. Is it possible to display it monthly?
Dealer Base (Tenured):= IF(VALUES(DATE_INVOICE[MONTH]) < 4, [Dealer Base Tenured], CALCULATE([Dealer Base1], FACT_OFF_TAKE[DL_CLASSIFICATION] = "TENURED"))
SUB METRICS:
Dealer Base1:=CALCULATE(DISTINCTCOUNT(DIM_DEALERS[DEALERS_KEY]), FILTER(DIM_DEALERS,NOT(ISBLANK([Transaction Count DealerBase]))))
Dealer Base OLD:=CALCULATE(DISTINCTCOUNT(DIM_DEALERS[DEALERS_KEY]), FILTER(DIM_DEALERS,NOT(ISBLANK([Transaction Count P4M]))))
Dealer Base Tenured:=CALCULATE([Dealer Base OLD], ALL(FACT_OFF_TAKE[DL_CLASSIFICATION])) - CALCULATE([Dealer Base1], FACT_OFF_TAKE[DL_CLASSIFICATION] = "CURRENT YEAR RECRUITS")
Solved! Go to Solution.
I have already solve this problem.
Instead of using values, I used LASTNONBLANK.
IF(LASTNONBLANK(DATE_INVOICE[MONTH], DATE_INVOICE[MONTH] < 4), [Dealer Base Tenured], CALCULATE([Dealer Base1], FACT_OFF_TAKE[DL_CLASSIFICATION] = "TENURED"))
I have already solve this problem.
Instead of using values, I used LASTNONBLANK.
IF(LASTNONBLANK(DATE_INVOICE[MONTH], DATE_INVOICE[MONTH] < 4), [Dealer Base Tenured], CALCULATE([Dealer Base1], FACT_OFF_TAKE[DL_CLASSIFICATION] = "TENURED"))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
12 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
19 |