Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello. I am trying to create a calculated column with DAX using if statements. I created a measure that works and outputs what I want it to but when I cannot put this measure into the chart as it does not let me. I tried creating a DAX column instead and it outputs a single date for some reason and I am not sure why. How would I use this calculation in a visual other than a table and would I be able to use it in a column? One note is that I am using 2 excel files with a relationship. Not sure if that would affect it.
-> measure that works correctly output into table
This is the measure I created.
-> Same measure used as a calculated column instead
Hi @Anonymous ,
As checked the formula of your measure, it involves two tables('Project_Number_and_Deadline' and 'forecast_and_actuals_data') and multiples date fields. How did you create the relationship between these two tables? Which table you are creating the calculated column in? Could you please provide some raw data of these two tables and the logic of [calculation date]? Then we can give you a suitable solution later... Thank you.
Best Regards
The relationship is many to many. I am connecting project numbers to each other to get the deadline date but the 'Project Number and Deadline' has more project numbers than the other document. Forecast and Actuals is where the main data is coming from. I will share some data to give you an idea. I tried to create the column in both tables but neither worked. It works as a measure in table visualization but I cannot use it in a graph, which is what I need it for.
You use MAX[column], it will return only one value, so it lead to your formula = same value. I did not know your data, and purpose, so can not support detail.
Hello. I am providing more info in the comment above.
User | Count |
---|---|
84 | |
80 | |
72 | |
71 | |
55 |
User | Count |
---|---|
108 | |
106 | |
93 | |
85 | |
67 |