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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have data that includes Region, RVP, Site. My table will display site totals by RVP by Region and will include inactive sites. But the RVP I display for each region should be the one from active sites, not inactive. How can I create a column to do this?
Solved! Go to Solution.
Hi @aashton ,
Based on your description, I have created a simple sample:
Please try:
ActiveSites = CALCULATE(COUNT(biz_structure[Site]),FILTER('biz_structure',[Active_Inactive]="Active"))
AllSites = COUNT(biz_structure[Site])
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @aashton
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
@aashton , if you have status field try a measure like like
Active =
var CurrentRegion = [Region]
var ActiveRVPs = calculatetable(VALUES(Table[RVP]), Table[Status] = "Active")
return
IF(
contains(ActiveRVPs, Table[Region], CurrentRegion),
CALCULATE(MAX(Table[RVP]), Table[Region] = CurrentRegion, Table[Status] = "Active"),
BLANK()
)
if you have dates refer approch of active employee in blog
Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
@amitchandak Thank you. It was not allowing me to pick my regions field in the CONTAINS function, and received this error:
Hi @aashton ,
Based on your description, I have created a simple sample:
Please try:
ActiveSites = CALCULATE(COUNT(biz_structure[Site]),FILTER('biz_structure',[Active_Inactive]="Active"))
AllSites = COUNT(biz_structure[Site])
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.