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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |