The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
So I need to find the diffrence in contracts billed this month vs last month but the visuals have filters applied that I need to keep.
How would I do this in dax?
Solved! Go to Solution.
Hi @mhgottsc ,
Please try the measure.
Measure =
CALCULATE (
SUM ( 'Table'[Amount] ),
FILTER (
'Table',
FORMAT ( 'Table'[Last Billed Date], "yyyymm" ) = FORMAT ( TODAY (), "yyyymm" )
)
)
- CALCULATE ( SUM ( 'Table'[Amount] ), 'Table'[Billed Last Month] = "Yes" )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mhgottsc ,
Please try the measure.
Measure =
CALCULATE (
SUM ( 'Table'[Amount] ),
FILTER (
'Table',
FORMAT ( 'Table'[Last Billed Date], "yyyymm" ) = FORMAT ( TODAY (), "yyyymm" )
)
)
- CALCULATE ( SUM ( 'Table'[Amount] ), 'Table'[Billed Last Month] = "Yes" )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I ended up just makeing the mesures withing the visual itself and claculating the difference between the visual levele mesures.
@mhgottsc , You need two date slicer or two dimension slicer
How to use two Date/Period slicers
Compare two Brands: https://youtu.be/exN4nTewgbc