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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Issues with Calculation Groups and Field Parameters

Hi Power BI wizards,
I have created a sample visuals using sample dataset of Power BI
The KPI is a field parameter which is using Sales measure and Profit measure.

Sales_ = SUM(financials[ Sales])
Profit_ = SUM(financials[Profit])
 
The Parameter filter is also a field parameter refrencing table columns.
Parameter = {
    ("Month Name", NAMEOF('financials'[Month Name]), 0),
    ("Year", NAMEOF('financials'[Year]), 1)
}
 
and lastly I've created Calculation Group with two calculation items
Sales = SELECTEDMEASURE()
YTD =
IF(
    NOT (ISINSCOPE(Parameter[Parameter Fields])),
    TOTALYTD(
        SELECTEDMEASURE(),
        DATESYTD(TBL_Date[Date])
    )
)
 
The Required Visual is 2 and what I'm getting is 1, meaning in the calculation of YTD there is a  repeation of the months. The same happens when I click on month Name , is there a way to avoid it and just show YTD?
 
Anonymousbot_1-1710861943849.jpeg

 


 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

 

Can you provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.

 

 

Best Regards,

Jayleny

Anonymous
Not applicable

 Hi,
most of the upload links are blocked from my organization if you see the screenshot attched with the question, I have numbered the two tables. I'm getting the 1, but the required visual is 2.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors