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

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.

Reply
sparkplug93751
Helper II
Helper II

Measures with dates

Hello,

 

I have a date control for Week Ending dates. Using this date control I have 2 measures I'm graphing against it:

 

One uses an actual date and appears corrects (calculate(countrows(table),table[actual]<>blank

Measure 2 with the issues is (calculate(countrows(table),table[target]<>blank

 

The second measure is adding the values in the last week twice, how can this be worked around? WIll supply data shortly

 

3 REPLIES 3
dax
Community Support
Community Support

Hi @sparkplug93751 , 

 

I am not clear about your requirement, if possible could you please inform me more detailed information(such as your expected output and your sample data (by OneDrive for Business))? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hello SparkPlug,

 

Did you try to use DistinctCountNoBlank function?

 

Hope this measure help you:

Measure 2 = DISTINCTCOUNTNOBLANK(table[target])
 
Please provide extra information if that measure did not help you.
Best wishes 🙂
 

----------------------------------------------

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

edhans
Super User
Super User

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.