Forum Discussion
Get blank() as output
- Anonymous4 years ago
Hi Zakaria_1980 ,
It looks like a matrix. But you chose a card visual, which is puzzling.
You can use the matrix visual to show the same effect.
Here's the solution.
1.Does your data model only have one table?
If it is, use dax to create a Module table.
Table 2 = DISTINCT('Table'[Module])2.Relationship is as follows.
3.Create two measures.
Target value = var _sum=SUM('Table'[Target]) return IF(ISBLANK(_sum),"N/A",_sum)Acieved value = var _sum=SUM('Table'[Achieved]) return IF(ISBLANK(_sum),"N/A",_sum)Then we get the results.
Check the attachment for more details.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HI Zakaria_1980 ,
What measure are you moving in your card visual which is displaying BLANK() ?
Also do you have any relationships going on at your end with your table?
Thanks,
Pragati
for relationships , i don't have it since i've just one Tbl.
that visual i shared with you displays blank() for one Module which is not forecatsed to be done in one city. i have one column if it's done any module =1 if not is 0, so i pick that column as data for me.
- Pragati114 years ago
Super User
HI Zakaria_1980 ,
Sorry I didn't understand the calculation that is giving you BLANK() here.
Can you please paste your formula for the calculation here please?
We just need to modify the calculation somehow to replace BLANK() with N/A.
Thanks,
Pragati
- Zakaria_19804 years ago
Post Patron
- Pragati114 years ago
Super User
Hi Zakaria_1980 ,
If you want to avoid BLANK(), then you will have to create a measure to handle this.
I am assuming:
- you are moving SUM(Consolidated[Certification Applcable]) to your card visual with an additional filter on Module = "PMO Practicioner".
- Both Certification Applcable and Module columns are in same table Consolidated
Write a measure something as below:
cardCalc = var calc = CALCULATE( SUM(Consolidated[Certification Applcable]), Consolidated[Module] = "PMO Practicioner" ) RETURN SWITCH( TRUE(), calc = BLANK(), "N/A", calc )Just check the DAX once specially for any naming conventions and filter expression values.
Move this measure to your card visual. It should display "N/A" not BLANK() now.
Thanks,
Pragati