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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Manibala
Frequent Visitor

Totals are missing for certain columns in Table visual(Period to Date Columns)

The total value is missing for certain columns in my table visual highlighter in yellow. All the columns are currency data types. Please let me know what I am missing. 

 

Manibala_0-1668489758463.png

 

since it is not adding up to the total when I remove the period and want to see the YTD, QTD, and PTD values, PTD is missing. 

Manibala_1-1668489908043.png

Let me know. 

thanks

 

 

 

6 REPLIES 6
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I assume you have a fact table and a dim-calendar table. And I assume [PTD$} is a measure.

Please try the below whether it suits your requirement.

 

PTD measure total fix: =
SUMX (
    SUMMARIZE ( 'FactTable', 'Calendar'[FiscalYear], 'Calendar'[FiscalPeriodNo] ),
    [PTD$]
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Jihwan, thanks for taking the time to reply. yes, I have both the Fact table and the calendar table. When I tried the fix, I got the total of the column. Instead, I should get the last value of the PTD value. $30,225 is the value that I should be getting for the Period to date value. 

 

Manibala_1-1668491446982.png

Let me know. thanks

Hi,

Thank you for your feedback.

In my opinion, I think it is better to fix the measure, [PTD$].

I do not know how the measure is authored, but please try the below for the alternative option.

 

PTD measure total fix: =
VAR _currentfy =
    MAX ( 'Calendar'[FiscalYear] )
VAR _currentfp =
    MAX ( 'Calendar'[FiscalPeriodNo] )
RETURN
    SUMX (
        FILTER (
            SUMMARIZE ( 'FactTable', 'Calendar'[FiscalYear], 'Calendar'[FiscalPeriodNo] ),
            'Calendar'[FiscalYear] = _currentfy
                && 'Calendar'[FiscalPeriodNo] = _currentfp
        ),
        [PTD$]
    )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Jihwan, Thanks for the response. I got the same results with the revised calc that you sent. I am attaching a sample PBI file for you to see to reproduce. I can reproduce the issue with the PBIX file attached. As you see in the attached image, QTD and MTD are not displaying (highlighted in yellow) at the category level for the current year, in this case, FY2010. YTD numbers are displaying correctly. Please see the F04 page of the attached PBIX file. 

Sample PBIx file 

QTD and MTD Issues.png

Hi,

I think your data only have information upto Aug 2009 (FQ2-2010).

What numbers are you expecting to see on the yellow color line?


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

For QTD column 268224.39 from the last quarter and then for the MTD 51528.74 from August, the latest month. It works for the YTD column, which brings in 583290.45 for the sub-total columns. As you see in the screenshot, QTD and MTD are not coming through when I slice the data by category. 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.