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
Anonymous
Not applicable

measure calculation help

I have a table  Table1 with below columns 

col1,  col2,   col3,   startdate,    targetdate

 

I want to create a measure something like below. Can you help me with correct syntax.

CALCUATE(
            DISTINCTCOUNT(col1),
   filter(      startdate  > Targetdate,

         col2 = "abc",
         col3 = "xyz")

 

1 ACCEPTED SOLUTION
bolfri
Super User
Super User

 

Measure = 
CALCULATE(
    DISTINCTCOUNT(SampleData[col1]),
    FILTER(SampleData, SampleData[startdate] > SampleData[targetdate] && SampleData[col2]="abc" && SampleData[col3] = "xyz")
)

bolfri_0-1694800927989.png

 

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
bolfri
Super User
Super User

 

Measure = 
CALCULATE(
    DISTINCTCOUNT(SampleData[col1]),
    FILTER(SampleData, SampleData[startdate] > SampleData[targetdate] && SampleData[col2]="abc" && SampleData[col3] = "xyz")
)

bolfri_0-1694800927989.png

 

 





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

Proud to be a Super User!




Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.