Forum Discussion
Jrich18
5 years agoFrequent Visitor
Dealing with blank data - creating measures
Hi, Im realatively new to power BI, im using a flat file to report on price movements of commodities. not all commodities have price data for each month. My data table looks like this: C...
- 5 years ago
Hi Jrich18
AVERAGE already ignores the blanks (not the zeros, of course). Use an AND instead of an OR:
CALCULATE(AVERAGE('Weekly Master'[Price]), 'Weekly Master'[Price]<>0 && 'Weekly Master'[Price]<>BLANK())
Please accept the solution when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
AlB
Community Champion
5 years agoHi Jrich18
AVERAGE already ignores the blanks (not the zeros, of course). Use an AND instead of an OR:
CALCULATE(AVERAGE('Weekly Master'[Price]), 'Weekly Master'[Price]<>0 && 'Weekly Master'[Price]<>BLANK())
|
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |