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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Navy_
Regular Visitor

Cumulative Count of Data based on Current and previous Year Quarters

Hi All,

Please help me in resolution of my problem.

 

step 1: I have to create a new calculated column in which we have to show values based on projected quarter, completed quarter and coverage year columns

step 2: I have to focus on FY-23/24 from coverage year column , where ever FY-23/24 is present we have to shown as it as in calculated column(which have to create new)

step 3: I have to give 1st priority for the completed quarter if we have value in completed quarter it should return complete quarter other project quarter in calculated column(which have to create new)

step 4: Now after creating of calculated column, have to represent the dataset on column chart in which xaxis should have of the data as per the calculated column which created based on above conditions.

step 5: here is the another challenge FY-23/24 we have only one entry so we will show it is in one bar, until FY24/25 running each quarter of FY24/25 should shown as individual bars, once FY24/25 get complete each quarter of FY-24/25 should be get clubbed in to one bar which is of FY-24/25, which means post completing of FY24/25 we have 2 bars on xaxis those are FY23/24, FY24/25 along with this FY-25/26 individual quarter bars which means FY23/24 , FY24/25, AMJ'25,JAS'25,OND'25,JFM'26

 

But this data  FY23/24 , FY24/25, AMJ'25,JAS'25,OND'25,JFM'26 should be shown only when FY25/26 enters until graph should show only FY23/24,AMJ'24,JAS'24,OND'24,JFM'25

 

Below is the dataset. I was trying to attach the PBIX file by inserting link. Hope it wont work. I'm so sorry as i'm new to community i dont know how to attach the files in reply or by sending new message. 

 

AccountSLTTProjected QuarterCompleted QuarterCoverage Year
AABCEF  FY-23/24
ADEFGHAMJ'24AMJ'24FY-24/25
A     
AGHIIJJAS'24AMJ'24FY-24/25
BABCEF  FY-23/24
BDEFGHAMJ'24 FY-24/25
BGHIIJAMJ'24 FY-24/25
CABCEFJAS'24 FY-24/25
CDEFGHOND'24 FY-24/25
CGHIIJJFM'24 FY-24/25
DABCEF  FY-23/24
D     
DDEFGH  FY-23/24
DGHIIJJFM'25 FY-24/25
EABCEFAMJ'25AMJ'25FY-25/26
EDEFGHJAS'25 FY-25/26
EGHIIJOND'25AMJ'25FY-25/26
FABCEFJFM'26 FY-25/26
FDEFGHAMJ'25 FY-25/26
FGHIIJJAS'25 FY-25/26

 

 

6 REPLIES 6
Anonymous
Not applicable

Hi @Navy_ ,hello @rajendraongole1 Thank you for your prompt reply!

 

For your requirements, please create two calculated columns as shown below:

 

In my sample, I understand that completed quarters and projected quarters are blank if the year has already

occurred.

CalculatedColumn =

IF(

   'Table'[Completed Quarter]=BLANK() && 'Table'[Projected Quarter]=BLANK(),

   'Table'[Coverage Year],

   IF(

       'Table'[Completed Quarter]=BLANK(),

     'Table'[Projected Quarter],

      'Table'[Completed Quarter]

   )

)

Then ,create another column to display the chart:

ChartColumn =

    VAR FY25_26 = "FY-25/26"

    VAR FY24_25 = "FY-24/25"

    VAR CompletedQtr24_25 =

        CALCULATE(

            COUNTROWS('Table'),

            FILTER(

                'Table',

                'Table'[Coverage Year] = FY24_25 && 'Table'[Completed Quarter]=BLANK() && 'Table'[Projected Quarter]=BLANK())

            )>0

    VAR CurrentQtr = [CalculatedColumn]

    RETURN

        IF(

            'Table'[Coverage Year] = "FY-23/24",

             [CalculatedColumn],

            IF(

                CompletedQtr24_25,

                IF(

                    'Table'[Coverage Year] = FY24_25,

                    [CalculatedColumn],

                    CurrentQtr

                ),

                CurrentQtr

            )

        )

vyajiewanmsft_0-1721295665022.png

 

If the FY-24-25 has been completed, the chart will show like this, remember to filter the blank value in chart column:

vyajiewanmsft_1-1721295665027.png

Best regards,

 

Joyce

 

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

Hi, 

Just for my clarification.... It means one fy24/25 gets completed then only data will display like the same in the second graph.

Correct me if I'm wrong...

Anonymous
Not applicable

Hi @Navy_,

 

As I understand it, if FY24/25 is completed, the chart will show two bars for FY23/24, FY24/25, and the uncompleted FY25/26 will show the detailed projected quarterly values.

 

Please feel free to reply if I have misunderstood your question.

Navy_
Regular Visitor

17209532513131680526852557460129.jpg

 

 

Here we are having for fy23/24 once the Fy-24/25gets completed like fy23/24 all quarters data should be shown as in one bar expected result on xaxis like fy23/24,fy24/25,amj'25,,jas'25,ond'25,jfm'26

 

Like this it should be automated for all years 

rajendraongole1
Super User
Super User

Hi @Navy_ - Can you try the below calculated column

CalculatedColumn =
VAR ProjQuarter = 'Data'[Projected Quarter]
VAR CompQuarter = 'Data'[Completed Quarter]
VAR CoverageYear = 'Data'[Coverage Year]

RETURN
IF(
CoverageYear = "FY-23/24", "FY-23/24",
IF(
NOT ISBLANK(CompQuarter), CompQuarter,
ProjQuarter
)
)

 

Ensure your data is sorted correctly in the calculated column to reflect the chronological order of fiscal years and quarters.

 

Hope it helps

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





I really appreciated your efforts but is not working.

 

17209531677436846464004388350616.jpg

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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