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.
I've a simple table with whole number values in the last column (no calculation). I would just like to total these values. But I'm ending up with just the value from one row.
I have the following setting:
Data type for the hours per week is a whole number. How can I solve this? Thanks.
Solved! Go to Solution.
Luckily I like skiing in Austria and know a bit of German 😉
Can you share your original dataset that is below this visual? There seems to be something wrong going on there. For example, is "Soll Stunden pro Woche" in the same or related table as your "Beginn der Woche" and "Ende der Woche" columns? If not, that would explain why this is happening as it is just returning the total sum of Soll Stunden of that table, unfiltered by the context of the table visual.
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Proud to be a Super User!
Hi,
According to your description, i am confused about how you calculate this column [Hours per week].
And if you want to calculate time gap, please try to use DATEDIFF function.
I create a simple table to test:
Then, create a calculated column:
Hours per week = DATEDIFF('Table'[Start Time],'Table'[End Time],HOUR)
And it shows the correct total:
Hope this helps.
Best Regards,
Giotto Zhi
I asume this column is not a column but a Measure, is that correct?
Measures are evaluated for the total row as well. In the table it is evaluated for every filtered context (by End of Week) but when it is evaluated for the Total row it is evaluated for a context not filtered by End of Week (so the whole dataset). This might give suprising results.
If this is a column, then please share your PBIX as I cannot reproduce this behaviour on my machine. If you want, you can PM me the link if you do not want to share publicly here and I can have a look for you.
EDIT: upon looking closer at your second screenshot I do have to conclude this is indeed a column. However, you are showing an extract from Excel, not from PowerBI? Why is that?
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Proud to be a Super User!
@JarroVGIT The content is in a different language. It is a column(whole number), not a measure. Could I just create a measure to give me the total?
I tried this but it just gave me the same values:
Luckily I like skiing in Austria and know a bit of German 😉
Can you share your original dataset that is below this visual? There seems to be something wrong going on there. For example, is "Soll Stunden pro Woche" in the same or related table as your "Beginn der Woche" and "Ende der Woche" columns? If not, that would explain why this is happening as it is just returning the total sum of Soll Stunden of that table, unfiltered by the context of the table visual.
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Proud to be a Super User!
Yeah, that was the issue. The soll stunden were in a different entity. I've now related the 2 entities and it solved my total issue.
Thanks
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 |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |