Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I am trying to use as calculated column DAX as below,
Hi @Anonymous ,
Try
Column =
IF (
TATLOADING[Total_loading]
= BLANK (),
"ND",
CONVERT (
TATLOADING[Total_loading],
STRING
)
)
If not working,
Share some sample data pls and expected output.
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Thanks for your response @harshnathani .
I have a column called Hour. It can be from 0 to 100, This was data.
Step 1: I performed switch DAX to calculatef following condition,
If any row is blank put it as ND(which is not supporting) so I used blank().
If hour<4, I need to count how many rows are >4.
If hour>4, need to put the result as zero. (not achieved the target).
Hi @Anonymous ,
Share some sample data pls or a sample pbix file.
Regards,
HN
| Hour | Weekname | Count_loading_col | Total_loading | Total teus | Location_name | Column |
| 41 | 20WK24 | 0 | 0 | 90 | 0 | |
| 4 | 20WK24 | 80 | ND | |||
| 20WK24 | a | ND | ||||
| 8 | 20WK24 | 0 | 0 | 90 | 0 | |
| 71 | 20WK24 | 0 | 0 | 80 | b | 0 |
| 3 | 20WK24 | 22 | 1 | 90 | 1 | |
| 21 | 20WK25 | 0 | 0 | 90 | 0 | |
| 13 | 20WK25 | 0 | 0 | 88 | 0 | |
| 20WK25 | ND | |||||
| 4 | 20WK25 | c | ND | |||
| 41 | 20WK25 | 0 | 0 | d | 0 | |
| 7 | 20WK25 | 0 | 0 | 0 | ||
| 20WK25 | ND | |||||
| 47 | 20WK25 | 0 | 0 | 80 | b | 0 |
| 11 | 20WK25 | 0 | 0 | 80 | 0 | |
| 23 | 20WK25 | 0 | 0 | e | 0 | |
| 9 | 20WK25 | 0 | 0 | b | 0 | |
| 15 | 20WK25 | 0 | 0 | a | 0 | |
| 8 | 20WK25 | 0 | 0 | a | 0 | |
| 2 | 20WK25 | 22 | 1 | 1 | ||
| 5 | 20WK25 | 0 | 0 | 0 | ||
| 20WK25 | ND | |||||
| 50 | 20WK25 | 0 | 0 | 90 | 0 | |
| 16 | 20WK25 | 0 | 0 | a | 0 | |
| 6 | 20WK25 | 0 | 0 | c | 0 | |
| 6 | 20WK25 | 0 | 0 | a | 0 |
This was my sample data.
I am using data across locations and different weeks. I understand that for some location, data was not recorded as either ND or any value. so its not showing anything. Please look into the screenshot below. But how can I put all blank values as "ND" if I filter using location also.
Thanks.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 20 | |
| 12 | |
| 10 |