Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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.