Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
I want to make a calculated column based on two other tables. I need the date and the goal columns from both tables. From the first table (Eerste goal), I want the values for the column Goals when they are not blank, and when they are blank, and want a 0. I want different values from the second table (Stats_conc). I want a 0 for every row, so when the value for the column is Blank, 0, 1, 2, 3, 4, etc. I want a 0. That's why I said: Stats_conc[Goals]) = 99, since there is no player who ever will score 99 times.
The formule is as follows:
Solved! Go to Solution.
Hi @MFelix
Thanks for your reply. Sorry for my late response, but I couldn't move on with my project, since I was busy with a new project.
Unfortunately, it wasn't the solution I was looking for. So, I approaced it differently. Instead of making one table with a complex calculated column, I kept the two tables seperatly, but with all the dates. For all those new dates which were filled with blanks, I replaced those blanks with 0's. So, instead solving the blanks by creating a calculated columns, it's solved in the Query Editor, which, in this case, was more intuitive.
I created a bridge table to link the two table (and to have a relationship from one-to-many).
Thanks for your help @MFelix , and I am happy it's finally solved
Hi @MFelix
Thanks for your reply. Sorry for my late response, but I couldn't move on with my project, since I was busy with a new project.
Unfortunately, it wasn't the solution I was looking for. So, I approaced it differently. Instead of making one table with a complex calculated column, I kept the two tables seperatly, but with all the dates. For all those new dates which were filled with blanks, I replaced those blanks with 0's. So, instead solving the blanks by creating a calculated columns, it's solved in the Query Editor, which, in this case, was more intuitive.
I created a bridge table to link the two table (and to have a relationship from one-to-many).
Thanks for your help @MFelix , and I am happy it's finally solved
Hello everyone,
The issue is still not solved. Could someone help me out?
Hi @Anonymous ,
Sorry for not giving you an answer before believe I have miss the notification about the message, please apologize me and be sure it was not on purpose.
I looked at your file, and since you have a date table relate with your tables you need to make the cumulative based on that value so if you change your metric to the following believe this solves your issue:
Cumulative goalstest =
CALCULATE(
SUM(StatsFirstGoal[Goalstest]),
ALL('StatsFirstGoal'),
'StatsFirstGoal'[NewDate]<=
MAX('Date'[Date])
&&'StatsFirstGoal'[Speler]=MAX('StatsFirstGoal'[Speler])
)
How you can see what I did was to change the MAX('StatsFirstGoal'[NewDate]) by the MAX('Date'[Date]).
Is this the result you need?
Be advise that your Calendar table should be continuos and not jumop dates in order to have a proper calculation of time intelligence values.
Check PBIX file attach and once more accept my apollogies.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous
Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @MFelix ,
Thank you for your reply!
It's open data, so here is the file:
https://drive.google.com/file/d/1wi7RVHpbOQenvSixhTcCmM_3V-1EuXWy/view?usp=sharing
I tried to explain the problem in more depth in the file, also by including visuals of course. I hope this helps, and otherwise, let me know!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |