The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I am trying to ensure i return a 0 and not blank in this field. I am unable to get it to work so far, my code is as follows. any help greatly appreciated:
Weekly Target LB =
VAR Weeks =
round(DATEDIFF(TODAY(),ENDOFYEAR('Date table'[Date],"31/01/2021"),DAY)/7,0)
VAR OS =
COUNTROWS(FILTER('Metadata','Metadata'[Status] <> "RecordComplete"))
RETURN
OS / Weeks
Solved! Go to Solution.
Try any of the 3 options below:
1. Measure = CALCULATE ( SUM (table[column] ), FILTER (... ) ) + 0 (Add Zero at the end of the formula)
2. Measure = IF ( ISBLANK([Amount]), 0, [Amount])
3. Measure = IF (CALCULATE ( SUM ( Expenses[Actual] ) ) = BLANK (), 0, CALCULATE ( SUM ( Expenses[Actual] ) ) )
In your case try first the following:
RETURN
(OS / Weeks) + 0
Try any of the 3 options below:
1. Measure = CALCULATE ( SUM (table[column] ), FILTER (... ) ) + 0 (Add Zero at the end of the formula)
2. Measure = IF ( ISBLANK([Amount]), 0, [Amount])
3. Measure = IF (CALCULATE ( SUM ( Expenses[Actual] ) ) = BLANK (), 0, CALCULATE ( SUM ( Expenses[Actual] ) ) )
In your case try first the following:
RETURN
(OS / Weeks) + 0
User | Count |
---|---|
80 | |
78 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |