Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
dogburalHK82
Helper III
Helper III

calculation percentage with blank

Hi, 

 

When calculating points from given matrix, it gives non value (or blank) when the lookup value is blank. 

In fact, the value should be 0%,  not blank. 

 

example as below. 

 

To calculate score against Late % matrix, the score for Feb is not shown as the Late% calculated is zero, but recognised as blank.

dogburalHK82_0-1685928781781.png

File is uploaded here as well. 

https://filebin.net/6nyv2yhxq7f5hgdv  

4 REPLIES 4
dogburalHK82
Helper III
Helper III

@lbendlin would you be able to explain with the example? I do not quite understand. 

 

So far,  i tried below

 

COALESCE dax

or 

_early =
var _blank = calculate(countA(Table1[Item Number]), filter(Table1, (Table1[days diff])<(-early[early Value])))
return
if(_blank = blank(), 0, _blank)
 
but then they shows all months.. and score table only still shows Jan.
dogburalHK82_1-1686035892283.png

 


 

 

Maybe the old " 0+ " trick is enough.  See attached.

thanks @lbendlin 

I did not know this trick. 

 

However, i still do see unwanted months in the table. how can I get rid of those months? 

 

When I tried below, it seems working. 

avg_early = averagex(Summarize('Table1', 'Table1'[Order Date]), calculate([_early]))
dogburalHK82_1-1686095793125.png

 

 

 

dogburalHK82_0-1686095319990.png

but not working with this

avg_late = averagex(Summarize('Table1', 'Table1'[Order Date]), calculate([score_late]))

dogburalHK82_2-1686095860952.png

 

lbendlin
Super User
Super User

To report on things that are not there you need to use disconnected tables and/or crossjoins

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.