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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.