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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
gio1082
Helper I
Helper I

Count of open entries for fiscal month

Hi, 

 

I need to create a table showing number of open entries that where open in a fiscal months

 

I have two tables 

1. Calendar date by ffiscal month 

Calendar DateFiscal YearFiscal Month
   
   

 

2. Data entry 

IDOPEN_DTLAST_CLOSE_DT
   
   

 

I need to create a table that shows open

Fiscal Month# Open Entries in month 
01 MAY 
02 JUN 

 

So for example if I have 3 open entries right now ( 01 May), and one closes in  03 JUL. 

 

2 ACCEPTED SOLUTIONS
v-yangliu-msft
Community Support
Community Support

Hi  @gio1082  ,

This is the data I created:

Table1:

v-yangliu-msft_0-1621234829946.png

Table2:

v-yangliu-msft_1-1621234829950.png

Here are the steps you can follow:

1. Create calculated table.

Fiscal Month = FORMAT('Table'[Calendar Date],"dd")&" "&FORMAT('Table'[Calendar Date],"mmm")

Result:

v-yangliu-msft_2-1621234829952.png

2. Create calculated column.

v-yangliu-msft_3-1621234829953.png

3. Result:

v-yangliu-msft_4-1621234829954.png

If my answer does not meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

v-yangliu-msft
Community Support
Community Support

Hi  @gio1082 ,

Here are the steps you can follow:

1. Create calculated column.

Month =
MONTH('Conversion_To_GCH_CY_FY_Dates'[Calendar Date])
Day =
VALUE(LEFT('Conversion_To_GCH_CY_FY_Dates'[Fiscal Month],2))
Year = YEAR('Conversion_To_GCH_CY_FY_Dates'[Calendar Date])
date = DATE([Year],[Month],[Day])

Result:

v-yangliu-msft_0-1621926016752.png

2. Create calculated table.

Table =
SUMMARIZE(FILTER('Conversion_To_GCH_CY_FY_Dates','Conversion_To_GCH_CY_FY_Dates'[date]<>BLANK()),'Conversion_To_GCH_CY_FY_Dates'[Fiscal Month],Conversion_To_GCH_CY_FY_Dates[date])
Table 2 = SUMMARIZE('Table','Table'[Fiscal Month]," Open Entries in month",SUM('Table'[Column]))

3. Result:

v-yangliu-msft_1-1621926016759.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yangliu-msft
Community Support
Community Support

Hi  @gio1082 ,

Here are the steps you can follow:

1. Create calculated column.

Month =
MONTH('Conversion_To_GCH_CY_FY_Dates'[Calendar Date])
Day =
VALUE(LEFT('Conversion_To_GCH_CY_FY_Dates'[Fiscal Month],2))
Year = YEAR('Conversion_To_GCH_CY_FY_Dates'[Calendar Date])
date = DATE([Year],[Month],[Day])

Result:

v-yangliu-msft_0-1621926016752.png

2. Create calculated table.

Table =
SUMMARIZE(FILTER('Conversion_To_GCH_CY_FY_Dates','Conversion_To_GCH_CY_FY_Dates'[date]<>BLANK()),'Conversion_To_GCH_CY_FY_Dates'[Fiscal Month],Conversion_To_GCH_CY_FY_Dates[date])
Table 2 = SUMMARIZE('Table','Table'[Fiscal Month]," Open Entries in month",SUM('Table'[Column]))

3. Result:

v-yangliu-msft_1-1621926016759.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yangliu-msft
Community Support
Community Support

Hi  @gio1082 ,

 

You can upload PBIX to some place where you can store files, and then copy the url and place it on the forum.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yangliu-msft
Community Support
Community Support

Hi  @gio1082  ,

This is the data I created:

Table1:

v-yangliu-msft_0-1621234829946.png

Table2:

v-yangliu-msft_1-1621234829950.png

Here are the steps you can follow:

1. Create calculated table.

Fiscal Month = FORMAT('Table'[Calendar Date],"dd")&" "&FORMAT('Table'[Calendar Date],"mmm")

Result:

v-yangliu-msft_2-1621234829952.png

2. Create calculated column.

v-yangliu-msft_3-1621234829953.png

3. Result:

v-yangliu-msft_4-1621234829954.png

If my answer does not meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Not sure how to submit a pbix file here, could you give details how to do it. I would be happy to give an example that way 

Here is my Power BI Example:

https://www.dropbox.com/s/zjqdbk4vl8olgnu/Example%20Power%20BI.pbix?dl=0

(let me know if the link works) 

 What I looking for is to create table where it shows active entries (subscribers) by Fiscal Month. 

ID: 1 (3/21/2021-4/21/2021) Was open Fiscal month "11 Mar", "12 April" 

ID:2 (3/21/2021-5/21/2021)was open fiscal Month "11 Mar", "12 April", "01 May"

ID:3 (4/21/2021- )was open fiscal Month "12 April", "01 May"

(Note:So if Last_day Is null then is still open)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.