Forum Discussion

harshagraj's avatar
harshagraj
Post Partisan
3 years ago
Solved

Dynamic measure for Fiscal column

HEllo all, i have two tables 'dataset' is main and 'Fiscal calendar' and both are joined on Joining Date and Fiscal Date.

I have below measure working for current quarter(April 2023 to June 2023) and now i want to modify this measure to adapt for other quarters.In Fiscal calendar i have a column FQFY(Q1 2023, Q2 2023 etc). Please help me to modify the below calculation to adapt for FQFY
Employees =
CALCULATE(
COUNT('dataset-2023-06-04 16_'[EmployeeNo]),
FILTER(
'dataset-2023-06-04 16_',
AND(
'dataset-2023-06-04 16_'[Joining Date] <= EOMONTH(TODAY(), -3),
OR(
ISBLANK('dataset-2023-06-04 16_'[Exit Date]),
'dataset-2023-06-04 16_'[Exit Date] > EOMONTH(TODAY(), -3)
)
)
))

amitchandak 

  • Hi Anonymous thank you but i found out the solution by using a disconnected table.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi harshagraj ,

    Could you please provide some raw data in your table  'dataset-2023-06-04 16_' and 'Fiscal calendar' (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following link to share the required info:

    How to provide sample data in the Power BI Forum

     

    And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards

    • harshagraj's avatar
      harshagraj
      Post Partisan

      Hi Anonymous thank you but i found out the solution by using a disconnected table.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi harshagraj ,

        It's glad to hear that your problem has been resolved. And thanks for sharing your solution here. Could you please mark your post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours.  Thank you.

        Best Regards