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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
Solution Sage
Solution Sage

 

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
Solution Sage
Solution Sage

 

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.