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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
crjackson
Helper I
Helper I

DAX Help

Hello!

 

I am trying to calculate an annualized compliance percentage. I have the denominators for each task in a table. The problem is that the denominators change annually. For example, for tasks for 2022 that are done monthly, the denominator is 12, quarterly is 4, and for some introduced mid-year is 6. In 2023, the task denominators will mostly be 12 or 4. I need both years in my table so they can look at the historical data. It seems to be ignoring the date filter and either adding the denominators from both years for a particular task or giving me the max denominator of the two. Is there a way to convert the column values to a measure that can be used to find the percentage? 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @crjackson ,

 

You are using employee and year from Compliance table as slicer.

In this case you will need an active relationship between Denominators and  Compliance tables.

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,

Jay

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@crjackson ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

I usually break such data using range

 

Between Dates - Dates between
Tables
https://amitchandak.medium.com/dax-get-all-dates-between-the-start-and-end-date-8f3dac4ff90b
https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2

Measure way
Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM
https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Visual: Den_SUM is not calculating properly – it is adding both years together regardless of employee or year.

crjackson_0-1668470264917.png

 

Data Tables:

Denominators:

crjackson_1-1668470264920.png

 

Den_SUM is adding them together regardless of employee ID or date

Den_SUM = SUMX(Denominators,Denominators[Denominator])

 

Compliance Data:

The sum measure is working for Comp_SUM = SUMX('Compliance Data','Compliance Data'[CompTotals])

 

crjackson_2-1668470264925.png

 

FreemanZ
Super User
Super User

it would be easier if you could provide some sample data with expected result.

Visual: Den_SUM is not calculating properly – it is adding both years together regardless of employee or year.

crjackson_3-1668470303771.png

 

Data Tables:

Denominators:

crjackson_4-1668470303772.png

 

Den_SUM is adding them together regardless of employee ID or date

Den_SUM = SUMX(Denominators,Denominators[Denominator])

 

Compliance Data:

The sum measure is working for Comp_SUM = SUMX('Compliance Data','Compliance Data'[CompTotals])

 

crjackson_5-1668470303775.png

 

Anonymous
Not applicable

Hi @crjackson ,

 

You are using employee and year from Compliance table as slicer.

In this case you will need an active relationship between Denominators and  Compliance tables.

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,

Jay

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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