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! It's time to submit your entry. Live now!
Hi,
Trying to Sum [Charged_Hrs] if [StartDate] = [Weeks].
[Weeks] uses Weeknum -> Weeks = WEEKNUM(vw_ShowChargesAndPayForVisits[iDate],2)
Solved! Go to Solution.
HI @Qotsa,
You can try to add calculated column to 'client list' table if it works for your requirement:
Act NewC =
CALCULATE (
SUM ( vw_ShowChargesAndPayForVisits[Charged_Hrs] ),
FILTER (
ALLSELECTED ( vw_ShowChargesAndPayForVisits ),
vw_ShowChargesAndPayForVisits[Weeks]
= WEEKNUM ( EARLIER ( ClientsList[StartDate] ), 2 )
&& vw_ShowChargesAndPayForVisits[ClientRef] = EARLIER ( ClientsList[ClientRef] )
)
)
Regards,
Xiaoxin Sheng
Act NewC = CALCULATE(SUM(vw_ShowChargesAndPayForVisits[Charged_Hrs]), vw_ShowChargesAndPayForVisits[Weeks] = WEEKNUM(ClientsList[StartDate],2))
Try this.
Tough to decipher what is going on here without sample data and understanding table relationships. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
HI @Qotsa,
You can try to add calculated column to 'client list' table if it works for your requirement:
Act NewC =
CALCULATE (
SUM ( vw_ShowChargesAndPayForVisits[Charged_Hrs] ),
FILTER (
ALLSELECTED ( vw_ShowChargesAndPayForVisits ),
vw_ShowChargesAndPayForVisits[Weeks]
= WEEKNUM ( EARLIER ( ClientsList[StartDate] ), 2 )
&& vw_ShowChargesAndPayForVisits[ClientRef] = EARLIER ( ClientsList[ClientRef] )
)
)
Regards,
Xiaoxin Sheng
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 52 | |
| 41 | |
| 32 | |
| 26 | |
| 24 |
| User | Count |
|---|---|
| 131 | |
| 118 | |
| 57 | |
| 45 | |
| 43 |