Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a measure that uses a fiscal year and month to sum the most recent month like this.
I know it is showing the max contract year and month for those markets, but is this expected behavior? Is there a way to make it show nothing for those markets that have no contracts yet so I they match the total?
Solved! Go to Solution.
Try it like this where we get the max MonthYear across all markets and use that.
FMTDSales =
VAR _MonthYear =
CALCULATE (
MAX ( JobsWithMilestones[ContractfiscalYearMonth] ),
ALL ( JobsWithMilestones[Market] )
)
RETURN
CALCULATE (
SUM ( JobsWithMilestones[GrossAmount] ),
JobsWithMilestones[ContractfiscalYearMonth] = _MonthYear
)
Try it like this where we get the max MonthYear across all markets and use that.
FMTDSales =
VAR _MonthYear =
CALCULATE (
MAX ( JobsWithMilestones[ContractfiscalYearMonth] ),
ALL ( JobsWithMilestones[Market] )
)
RETURN
CALCULATE (
SUM ( JobsWithMilestones[GrossAmount] ),
JobsWithMilestones[ContractfiscalYearMonth] = _MonthYear
)
That did the trick thanks for the quick response.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
97 | |
82 | |
74 | |
66 |
User | Count |
---|---|
120 | |
105 | |
99 | |
81 | |
72 |