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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
KhrystinaM
Helper I
Helper I

Formulas

Hello, 

 

I have a dashboard with SharePoint list entries. If items are not completed by a certain time they are marked as "Not Posted" I created a measure [Not Posted = CALCULATE(COUNTROWS('Status Board'),'Status Board'[Posted]="Not Posted")]. The department leads have requested that the times not posted only calculate for the date, so instead of times not posted = 7, it would =1 for that department on that date. I'm not sure how to write a formula for this? Hopeing someone can help.

 

KhrystinaM_0-1713223237327.png

 

Thank you!!

 

1 ACCEPTED SOLUTION

Hello, I was able to get the data needed by creating a new column (combining date&department) and then creating a distinct count measure. Thank you for your assistance. 

View solution in original post

4 REPLIES 4
v-kongfanf-msft
Community Support
Community Support

Hi @KhrystinaM ,

 

Please provide test data and formulas created.

 

Best Regards,
Adamk Kong

Hello, I was able to get the data needed by creating a new column (combining date&department) and then creating a distinct count measure. Thank you for your assistance. 

v-kongfanf-msft
Community Support
Community Support

Hi @KhrystinaM ,

 

Change your formula like below:

Not Posted =
CALCULATE (
    DISTINCTCOUNT ( 'Status Board'[EntryID] ),
    FILTER ( 'Status Board', 'Status Board'[Posted] = "Not Posted" ),
    ALLEXCEPT ( 'Status Board', 'Status Board'[Department], 'Status Board'[Date] )
)

vkongfanfmsft_0-1713250682192.png

 

Best Regards,
Adamk Kong

 

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

 

I tried that but it returned the same value as my current measure. 

KhrystinaM_0-1713291491071.png

Ideally these 7 entries that missed the deadline on 1/16/24 could only list show not posted count as 1 (not 7).

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.