Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I have the following measure:
Solved! Go to Solution.
The issue is that there isn't a single value for date when you are grouping by year and month. You can instead check the value of the Year column
Trading_FEE_Measure_Total =
IF (
SELECTEDVALUE ( DateTime_Calendar[Year] ) >= 2025,
-0.04 * [Total cashflow before Fees_TNUoS_CM_Total],
SUMX (
SUMMARIZE (
R_BATTERY_SITES,
R_BATTERY_SITES[SITE_NAME],
"Trade fee",
IF (
R_BATTERY_SITES[SITE_NAME] = "Cowley BESS",
SUMX ( VALUES ( DateTime_Calendar[Date] ), [Trading_Fee_Measure_Daily] ),
[Trading_Fee_Measure_Daily]
)
),
[Trade fee]
)
)
The issue is that there isn't a single value for date when you are grouping by year and month. You can instead check the value of the Year column
Trading_FEE_Measure_Total =
IF (
SELECTEDVALUE ( DateTime_Calendar[Year] ) >= 2025,
-0.04 * [Total cashflow before Fees_TNUoS_CM_Total],
SUMX (
SUMMARIZE (
R_BATTERY_SITES,
R_BATTERY_SITES[SITE_NAME],
"Trade fee",
IF (
R_BATTERY_SITES[SITE_NAME] = "Cowley BESS",
SUMX ( VALUES ( DateTime_Calendar[Date] ), [Trading_Fee_Measure_Daily] ),
[Trading_Fee_Measure_Daily]
)
),
[Trade fee]
)
)
Thank you! This worked
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!