Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
hi everyone
am using hasonevalue, but i dont know why its not working, in my date filter context i should have 3 customers, so my hasonevalue should give blank, but when i expand the date then each customer ,his salary should be shown as filter context now only shows one customer , isnt? or am missing on something, as i put hasonevalue(customerid)
Solved! Go to Solution.
i fixed it thanks, i used my solution, it worked after i restarted the pc
Hi @chahineatallah,
May I know if you correct your table name used in the dax formula, will you get what you want?
total salary = IF(HASONEVALUE('fact table'[customer ID]),SUM(customer[salary]),"")
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
i fixed it thanks, i used my solution, it worked after i restarted the pc
That's great! Thanks for your reply!
Could you please share and mark your solution by Accept it as the solution to close this post and help others find it more quickly? Thanks in advance!
Best Regards,
Community Support Team _ Caiyun
hasonevalue('fact table'[customer ID])
wrong table name
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |