Resolve NaN in Power BI Charts

When creating Charts in Power BI, you might get into situations where your graph may not show proper numbers or drill down to granular level might have issues due to NaN. The reason this problem exists is because of Divide By Zero error. When creating your Measures the easiest way to resolve this problem would be to user inbuilt DIVIDE formula which takes care of divide by zero automatically.

Code : Measure = DIVIDE(SUM(COL1),SUM(COL2));

Up here you are dividing COL1 by COL2.

Comments

Popular posts from this blog

How to retrieve texts from Html SharePoint List source in Power BI

Simplifying Data Migration: Debezium for Moving Data from Oracle to SQL Server

Installing MariaDB on Ubuntu using SUDO