Forum Discussion
I have a issue with DAX
Hello Team,
I hope everyone is doing well!
I am facing an issue in my report.
I am expecting the output as below:
Employee Name: Nellaiappan Gomathinayagam
Week: 4–10 → 2 Days, and 11–17 → 3 Days (Month: Aug 2025)
But currently, I am getting the output incorrectly:
Under week 4–10 → only 1 day is showing
Week 11–17 is missing completely
I have used the calculation shown below.
Could you please assist me in resolving this issue?
Date Table calculation:
Report output:
Relation ship in Model:
Hi kolli002 ,
If you are still facing any issue, kindly provide a sample data so that we can assist you better.
Please exclude sensitive information while providing sample data. Here is a helpful link which might help you provide data-
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Thank you for reaching out on Microsoft Community Forum
5 Replies
- FBergamaschi
Super User
Hi kolli002,
without usable data, I can only suggest to use a simpler code
Days Present per Week =
DISTINCTCOUNT ( Attendance[Date] )
Does that work?
If not,
can you please share the pbix via some cloud service? Or in alternative can you please include, in a usable format, not an image, a small set of rows for each of the tables involved in your request and show the data model in a picture, so that we can import the tables in Power BI and reproduce the data model. The subset of rows you provide, even is just a subset of the original tables, must cover your issue or question completely. Do not include sensitive information and do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided and make sure, in case you show a Power BI visual, to clarify the columns used in the grouping sections of the visual.
Need help uploading data? click here
Want faster answers? click here
- v-sdhruv
Community Support
Hi kolli002 ,
If you are still facing any issue, kindly provide a sample data so that we can assist you better.
Please exclude sensitive information while providing sample data. Here is a helpful link which might help you provide data-
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Thank you for reaching out on Microsoft Community Forum - tillwicklNew Member
It would appear that you've created your "Days Present per Week" as a calculated column?
I don't think you need to change the syntax of your DAX. If you want it to change for each employee that you've selected create it as a measure instead.