Forum Discussion
mmparvez
2 years agoFrequent Visitor
Zero value as average
I have a table
Which i want to show as Visualisation Table with zero value as average per product catagory.
Expected visualization
pls try this
3 Replies
- AhmedxSuper User
- AnalyticPulseSolution Sage
use if condition to achive this.
here is example:
AverageAmount =
IF(
SUM('YourTable'[Amount]) = 0,
AVERAGE('YourTable'[Amount]),
SUM('YourTable'[Amount])
) - mm_parvezNew Member
Follow steps:
1. Replace Value '0' to 'null'.
2. Create a New Measure
Measure = IF( SUM('Table'[Value]) = 0, CALCULATE(AVERAGEA('Table'[Value]), REMOVEFILTERS('Table'[Customer])), SUM('Table'[Value]) );