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
SebL
Frequent Visitor

YTD Value in Matrix Total

Hi Folks, 

Looking for a solution for the following DAX measure: 

Frequency =
IFERROR(
Count(Account[ReferenceNu])/Sum(CANSIM[BOTH])*12*100,
BLANK()
)


The IFERROR is a fix for Infinity results, as there is a delay in publication of data in the denominator (CANSIM) table. The *12 multiplier is applied to each month to make them comparable to yearly values. The issue I'm having is with the total in the Year / Month matrix for the current year. The YTD value should have a multiplier of 12 divided by the count of months in the CANSIM table so far this year.

I can't seem to figure out how to apply this logic. 

I'm also looking to do the same for my two measures that display a territory breakdown. These are both missing the IFERROR element as well. 

Frequency (NT) =
COUNTX(
Filter(
Account,
RELATED(ClaimantAccount[TerritoryID])=1
),
Account[AccountID]
)/Sum(CANSIM[NT])*12*100
 
Frequency (NU) =
COUNTX(
Filter(
Account,
RELATED(ClaimantAccount[TerritoryID])=2
),
Account[AccountID]
)/Sum(CANSIM[NU])*12*100
2 REPLIES 2
SebL
Frequent Visitor

Hi @AlB, thanks for the response. 

Here are some screenshots for more context. 

 

'Merged' column connects month/year between dbo_Event and CANSIM'Merged' column connects month/year between dbo_Event and CANSIMMock-up of the different ways I want to present the data.Mock-up of the different ways I want to present the data.Tables schemaTables schemarelationshipsrelationships

AlB
Community Champion
Community Champion

Hi @SebL 

Not clear. Can you shre some sample data and the expected result based on that data?

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.