The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a report that looks up a store code to an excel file that lists out the store name. However there are some store codes that do not have names, in which case the store name field shows up as blank in the visual. However, I'd like it say 'null' or 'other' or some other term I can code in. But i would want to account for any new store codes that might show up in the future. So, if a store code isn't on the Excel file, it will say 'null' under store name...which means I can't really use things like EXCEPT or anything like that. Is there an easy way to do this:
Simply put the excel file might say
Store Code | Store Name |
223 | Store |
224 | BigStore |
225 | LittleStore |
226 | NewStore |
The store code links to a table, which might hhave store 222 or store 227 or any other number. I would want the store name to display as 'Null' and not blank in that case
Solved! Go to Solution.
Hi @paguy215 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
_Store Name = IF('Table'[Store Name]=BLANK(),"null",'Table'[Store Name])
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @paguy215 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
_Store Name = IF('Table'[Store Name]=BLANK(),"null",'Table'[Store Name])
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Actually I was able to figure it out using the LOOKUPVALUE formula...thanks!
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
11 | |
9 | |
8 |