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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
GhadaMehrez
Helper III
Helper III

% Measure

 

 

Please I have this measure to calculate % of {Actual Booked Cost} per each Strategy Theme from the {Total Actual Booked Cost}:

Here the measure works correctly in card visual but when I add it to the table it appear as 100% for all numbers and this not right any help what is the error??

 

% Actuals Booked =
DIVIDE(
[Actuals Booked],
CALCULATE(
[Actuals Booked],
ALL('Projects'[fls_StrategyThemeName])
)
)
GhadaMehrez_0-1660651860118.png

 

 

 

3 REPLIES 3
amitchandak
Super User
Super User

@GhadaMehrez , Try like

 

% Actuals Booked =
DIVIDE(
[Actuals Booked],
CALCULATE(
[Actuals Booked],
ALL('Projects')
))

 

or

 

% Actuals Booked =
DIVIDE(
[Actuals Booked],
CALCULATE(
[Actuals Booked],
ALL()
))

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

I tried to send you a simplified file but when I do simple table it works good I don't know what is the problem 

@amitchandak In the cards works good, but in the table looks like below:

GhadaMehrez_0-1660654608821.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.