Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have the following measure
LastReviewDate =
if(isblank(max(FactPerformanceRating[ReviewDate])),
"No Review Yet",
max(FactPerformanceRating[ReviewDate])
)
ReviewDate is all date format.
When use this DAX, the card vis just show up as #,0.00, and it is not possible to format this measure as date.
how can I change my DAX so that I can use string text inside the IF statement?
source, from DataCamp course case study: HR analystics in Power BI > 9.2 Analysing demographics
Solved! Go to Solution.
Hi @Nietzsche
I think card visual only takes the output of the same data type. So for example, in your original formula, the data type can be either date format or string format.
If you tweak your formula like below, it will produce your required output.
I also attach the pbix file for your reference.
Best regards,
oh yes you are night.
The instruction did ask us to format it, but not in the code, but in the ribbon.
Hi @Nietzsche
I think card visual only takes the output of the same data type. So for example, in your original formula, the data type can be either date format or string format.
If you tweak your formula like below, it will produce your required output.
I also attach the pbix file for your reference.
Best regards,
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |