Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have 3 separate measures shown below, It works fine,
Projects[Active Tasks] = CALCULATE(COUNTROWS('Tasks'),FILTER('Tasks','Tasks'[status] = "Active"))
Projects[Completed Tasks] = CALCULATE(COUNTROWS('Tasks'),FILTER('Tasks','Tasks'[status] = "Completed"))
Projects[Percent Complete] = DIVIDE([Completed Tasks],([Completed Tasks]+[Active Tasks]))
rather than showing nothing , I want to show 0% (where Active Tasks and Completed Tasks) are null, (see below highlighted in RED).
How do I modify above measure to achieve this, any help is appreciated
@smjzahid , Try like
Projects[Percent Complete] = DIVIDE([Completed Tasks],([Completed Tasks]+[Active Tasks]),0)
or
Projects[Percent Complete] = DIVIDE([Completed Tasks],([Completed Tasks]+[Active Tasks]))+0
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |