The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I would like to create a table something like below
year is set for 2006, 2013 and 2018, and i can use measure like lookupvalue to find year's number of people. but the problem is Dax doesnt like measure in the created table
my dax is like
you can see the data is there but its table doesnt like measure
Solved! Go to Solution.
Don't use LOOKUPVALUE unless you really have to.
Use proper table definitions DATATABLE function - DAX | Microsoft Learn
Implement your business logic as a calculated column rather than a measure, or use COALESCE.
HI,
basically i want to show a chart like this
and i converted to the table and i understand the data structure should looks like below
and this is how my table looks like, and i have a slicer the user could select a area which is link to the areacode to the table (selected area is a measure)
and i want to recreate a table use the dax
what you show is not valid DAX.
You can use COALESCE to handle scenarios when measures return BLANK()
Hi,
Thanks for the quick response.
I am trying to create a new table, and you can see row1 value3 isnt shown up. I guess the reason is [areaCodeForSelectedClub] is a measure and PowerBI doesnt like its not been static value?
and how do I fix it?
thanks in advance
Kind regards,
Don't use LOOKUPVALUE unless you really have to.
Use proper table definitions DATATABLE function - DAX | Microsoft Learn
Implement your business logic as a calculated column rather than a measure, or use COALESCE.
Thank you.
Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
19 | |
18 | |
14 |
User | Count |
---|---|
41 | |
39 | |
24 | |
22 | |
19 |