Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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.
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |