The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Dear Friends
i have two dates column date1 and date2,
and calculatting the difference by measure by comparing constant value Z=3:
Solved! Go to Solution.
Rename your current measure to be Measure Individual and then create a new measure
Measure = IF( ISINSCOPE( 'Table'[date1]), [Measure Individual],
SUMX( ADDCOLUMNS( SUMMARIZE( 'Table', 'Table'[date1], 'Table'[date2]),
"@val", [Measure Individual] ),
[@val] )
)
Hi @Anonymous ,
According to your description, here's my solution.
Create a measure.
Measure =
VAR _Count =
COUNTROWS (
FILTER ( 'Table', DATEDIFF ( 'Table'[date1], 'Table'[date2], DAY ) > 3 )
)
RETURN
IF ( ISBLANK ( _Count ), 0, _Count )
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
Rename your current measure to be Measure Individual and then create a new measure
Measure = IF( ISINSCOPE( 'Table'[date1]), [Measure Individual],
SUMX( ADDCOLUMNS( SUMMARIZE( 'Table', 'Table'[date1], 'Table'[date2]),
"@val", [Measure Individual] ),
[@val] )
)
User | Count |
---|---|
69 | |
69 | |
66 | |
55 | |
28 |
User | Count |
---|---|
112 | |
82 | |
66 | |
48 | |
43 |