Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi
I am writing a meaure to calculate %Change from Dec'23 to Mar'24 and display value on card. Using the below measure.
Along with this KPI, i have few more KPIs on the same report which will use the filter of the ReportingMonth.
I want below expression should not filter based on selected reporting month and do the calculation just by using reporting month value and defined values from preMY.
%Change_CYCM =
VAR _preMY = VALUE("2023-12-01")
VAR _preqty =
CALCULATE (
SUM ( 'Bugs'[BUGS_COUNT] ), FILTER(ALLSELECTED('Bugs'),
'Bugs'[ReportMonth]=_preMY)
)
VAR _curMY = VALUE("2024-03-01")
VAR _curqty =
CALCULATE (
SUM ( 'Bugs'[BUGS_COUNT] ),
FILTER (
ALLSELECTED ( 'Bugs' ),
'Bugs'[ReportMonth] = _curMY
)
)
RETURN
DIVIDE ( _preqty-_curqty, _preqty )
Solved! Go to Solution.
Instead of
VAR _preMY = VALUE("2023-12-01")
use
VAR _preMY = dt"2023-12-01"
Instead of
VAR _preMY = VALUE("2023-12-01")
use
VAR _preMY = dt"2023-12-01"
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
11 | |
3 | |
2 | |
2 | |
2 |