Forum Discussion
PatrickF2002
3 years agoRegular Visitor
Adding 0's to power BI Data
So essentially, I have a set of data for a store that includes cash registers 1-15, with the numerical amount of transactions that occur at these registers for each hour they are operational. My prob...
ray_aramburo
Super User
3 years agoTransactionsCount =
var tcount = COUNT('Insert your table name here'[register_id])
RETURN
IF(ISBLANK(tcount), 0, tcount)
After created add all those columns to the table visual plus the created measure (this created measure would replace txns column)
PatrickF2002
3 years agoRegular Visitor
So I tried your formula, and I got an error reading this-
Any advice on how to fix?
- ray_aramburo3 years ago
Super User
First write the measure name then Alt + Enter and write the var line, then instead of an =, write a RETURN.
Also, instead of ISBLANK(vregister_count[txns]) write it as (ISBLANK(tcount))
See example here:
TransactionsCount = var tcount = COUNT('Insert your table name here'[register_id]) RETURN IF(ISBLANK(tcount), 0, tcount)