Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
New_Folder
Helper I
Helper I

Count is incorrect. What could have been causing this?

New_Folder_0-1769443987363.png

 

What should I be looking for?

 

MH7 is a measure that counts the last 7 days, it should be counting 7, but its just showing 4.

 

MH7 =

CALCULATE(

DISTINCTCOUNT('Utility Allowance Tracker - HDR'[Created]),

FILTER('Utility Allowance Tracker - HDR',

'Utility Allowance Tracker - HDR'[Created] >= TODAY()-7),

'Utility Allowance Tracker - HDR'[Client Name] = "Mercy Housing")

 

1 ACCEPTED SOLUTION
Zanqueta
Super User
Super User

Hi @New_Folder , if possible, share a sample data without sensible content in order to give us an way to replicate your issue. 
In time, maybe you should check

  1. Whether you intend to count rows or distinct dates.
  2. The actual content and granularity of the Created field.
  3. Hidden filters affecting the visual.
  4. Inconsistencies in Client Name.
  5. Whether the record has Created values that are blank, null or truncated.

     

 

If this response was helpful in any way, I’d gladly accept a kudo.
Please mark it as the correct solution. It helps other community members find their way faster.
Connect with me on LinkedIn

View solution in original post

6 REPLIES 6
v-dineshya
Community Support
Community Support

Hi @New_Folder ,

Thank you for reaching out to the Microsoft Community Forum.

 

You want number of requests, but you are counting distinct Created timestamps/dates. If multiple requests were created on the same day, they collapse into one count.

 

Please try below measures.

 

1. If you want requests in last 7 days, try below measure.

 

MH7 =
CALCULATE(
COUNTROWS('Utility Allowance Tracker - HDR'),
'Utility Allowance Tracker - HDR'[Created] >= TODAY() - 7,
'Utility Allowance Tracker - HDR'[Client Name] = "Mercy Housing"
)


2. If you want a rolling 7-day window including time, try below measure.

 

MH7 =
CALCULATE(
COUNTROWS('Utility Allowance Tracker - HDR'),
'Utility Allowance Tracker - HDR'[Created] >= NOW() - 7,
'Utility Allowance Tracker - HDR'[Client Name] = "Mercy Housing"
)

 

I hope this information helps. Please do let us know if you have any further queries.

 

Regards,

Dinesh

Hi @New_Folder ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.

 

Regards,

Dinesh

Hi @New_Folder ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.

 

Regards,

Dinesh

ryan_mayu
Super User
Super User

@New_Folder 

maybe you can create a new measure

measure=sumx(values(Site Name), MH7)

 

if this does not work, pls provide some sample data and expected output





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Zanqueta
Super User
Super User

Hi @New_Folder , if possible, share a sample data without sensible content in order to give us an way to replicate your issue. 
In time, maybe you should check

  1. Whether you intend to count rows or distinct dates.
  2. The actual content and granularity of the Created field.
  3. Hidden filters affecting the visual.
  4. Inconsistencies in Client Name.
  5. Whether the record has Created values that are blank, null or truncated.

     

 

If this response was helpful in any way, I’d gladly accept a kudo.
Please mark it as the correct solution. It helps other community members find their way faster.
Connect with me on LinkedIn

Alex_Sawdo
Resolver II
Resolver II

When using DISTINCTCOUNT, it literally counts the "distinct" values from the column you're counting, and not the "total" number of values in the column. Try using COUNT() instead of DISTINCTCOUNT() instead. 

Also, if possible can you share a subset of data from the 'Utility Allowance Tracker - HDR'[Created] column to assist in answering your question?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.