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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Measure: Aggregate By, Filter By, Group By, Simple Math

I am attempting to make a measure that calculates SUM(Num_Compliant) / SUM(Num_Asked) for a District, filtered to the current Fiscal Year (i.e. Date on or after 07/01/2018, or July 1, 2018).

 

With the following sample data,

Sample Data.PNG

I expect the following results:

DistrictNumeratorDenominatorValue
A4140.29
B10140.71
C614

0.4

3

I am aware that the denominators are always 14 in this sample data, but that is not the case in the real data, as, in practice, sections are sometimes missing.

 

I have been trying to solve this for about a day, and am brand-new to Power BI, so I apologize if this is a very simple question.

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

You could try this way as below:

Is there a Fiscal Calendar table in your report, if not add a Fiscal Calendar table then create a relationship with basic data table.

Then create measure as below:

Total NumAsked = SUM('Table'[Num_Asked])

Total NumCompliant = SUM('Table'[Num_Compliant])

Value = DIVIDE([Total NumCompliant],[Total NumAsked])

Result:

11.JPG

here is pbix file, please try it.

 

Best Regards,

Lin

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

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

You could try this way as below:

Is there a Fiscal Calendar table in your report, if not add a Fiscal Calendar table then create a relationship with basic data table.

Then create measure as below:

Total NumAsked = SUM('Table'[Num_Asked])

Total NumCompliant = SUM('Table'[Num_Compliant])

Value = DIVIDE([Total NumCompliant],[Total NumAsked])

Result:

11.JPG

here is pbix file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Arnault_
Resolver III
Resolver III

Hi @Anonymous ,

 

There are different possible answers. Here is a link with a pbix file with the desired output.

I chose to create a table to identify the fiscal year period. It is better to keep it dynamic and allow users to change it.

Please check the file, the different measures created and give me your feedback.

Cheers

 

Pbix

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.