Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
checkner
Frequent Visitor

Sum of open vacancies per timeframe

Hey,

 

I am using the following code to count open requisition per timeframe. Now I want to count how many vacancies are open per timeframe. 1 job can have multiple vacancies behind it and in my table I have these values already:

 

Requisition Open = 
VAR tmpTickets = ADDCOLUMNS('Report (2)',"Effective Date",IF(ISBLANK([Geschlossen am]),TODAY(),[Geschlossen am]))
VAR tmpTable =  
SELECTCOLUMNS(
    FILTER(
        GENERATE(
            tmpTickets,
            'Calendar'
        ),
        [Date] >= [Erstellungsdatum] &&
        [Date] <= [Effective Date]
    ),
    "ID",[Stellenanforderungskennung],
    "Date",[Date],
    "Vacancies",[Anzahl der Vakanzen]
)
VAR tmpTable1 = GROUPBY(tmpTable,[ID],"Count",COUNTX(CURRENTGROUP(),[Date]))
RETURN COUNTROWS(tmpTable1)

checkner_0-1701960900820.png

 

1 REPLY 1
v-xuxinyi-msft
Community Support
Community Support

Hi  @checkner 

 

The data you have provided so far is a bit scanty, and I can not reproduce your formulas. Can you provide more sample data and the results you expect? So that I can help you better. Show it as a screenshot or excel. Please remove any sensitive data in advance.

 

Best Regards,

Community Support Team _Yuliax

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.