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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
chrisingham05
Frequent Visitor

Basic calculation help

Hello,

 

I'm working on a dashboard that requires some calculations and I'm not that familiar with the best way to do it; 

 

  1. Table 1 - List of KPIs
    1. Service Name (unique)
    2. KPI for quantity of service name per FTE
  2. Table 2 - List of Config Items and related Service Name
    1. Config Item ID
    2. Customer
    3. Service Name

 

Report

So far I have a table as follows; 

chrisingham05_0-1650634363079.png

 

What I'd like to include is another column with the following formula;

 

Count of Unique ID (2a) / KPI for quantity of service name per FTE (1b) = FTE 

An example would be 
"ATM All instances L1-L3" of 46 / "KPI for quantity of service name per FTE" of 100 = 0.46 FTE

 

I'm not sure where to create this formula or how. Any suggestions would help!

1 ACCEPTED SOLUTION
vojtechsima
Memorable Member
Memorable Member

Hi, @chrisingham05 


vojtechsima_0-1650636407937.png
Measure like this:

FTE_Measure = CALCULATE( DIVIDE ( DISTINCTCOUNT( 'Table 2'[ConfigItemID]), MAX('Table 1'[KPI_FTE])))


Model like this:

vojtechsima_1-1650636443519.png

 

 

View solution in original post

5 REPLIES 5
vojtechsima
Memorable Member
Memorable Member

Hi, @chrisingham05 


vojtechsima_0-1650636407937.png
Measure like this:

FTE_Measure = CALCULATE( DIVIDE ( DISTINCTCOUNT( 'Table 2'[ConfigItemID]), MAX('Table 1'[KPI_FTE])))


Model like this:

vojtechsima_1-1650636443519.png

 

 

Perfect, thanks! 

@chrisingham05 
No, problem, if you could Kudo my Solution answer, so it'S verified in both ways. THank you

So the formula worked as expected one way, but the totals dont seem to work right. Any idea how I can fix this so it just sums the figures above? Total shows 0.19 whereas it should be something like 300. 

 

chrisingham05_0-1650890476679.png

 

Hi, @chrisingham05 
Try modify it like this:

FTE_Measure = IF(ISFILTERED('Your Table'), (CALCULATE( DIVIDE ( DISTINCTCOUNT( 'Table 2'[ConfigItemID]), MAX('Table 1'[KPI_FTE])))), SUM('Table'[ColumnForSum]))​​

Use your own tables and column 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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