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
GhadaMehrez
Helper III
Helper III

Create Measures related to measure table

I have measure based on the measure table {Custom Calculation} when I set the measure as below it is not working and help what is wrong:

 

 

% Actuals Booked = COUNT(CustomCulculations, [Actuals Booked])*.01

 

GhadaMehrez_0-1660039715038.png

 

1 ACCEPTED SOLUTION

@GhadaMehrez 
Here is a link to download a sample solution file:
Create Measures related to measure table 2022-08-10.pbix

I created few versions of the measure. 
Depending on your use case one of them will probably be the right one.
For the sake of the sample all are giving the same result.



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Showcase Report – Contoso By SpartaBI

Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

View solution in original post

17 REPLIES 17
GhadaMehrez
Helper III
Helper III

@SpartaBI 

please see here the error message , I hope you can help

GhadaMehrez_1-1660070605828.png

 

@GhadaMehrez already night my timezone so ping me here tomorrow

@SpartaBI Hello Thanks for your support, any idea how to fix this as mentioned here I'm need to create a new measure calculating the percentage per strategy category from the total cost, the fields related to estimated total cost is a measure, not a column in a table it is (group of calculation{Custome Calculaion}.

 

I hope this information makes the issue more visible.

Thanks again

@GhadaMehrez hey are you here now maybe? I have few minutes for zoom / teams

@SpartaBI  yes sure available now

@GhadaMehrez cool, will be available in an hour and ping you here with a link to zoom

@GhadaMehrez 
Here is a link to download a sample solution file:
Create Measures related to measure table 2022-08-10.pbix

I created few versions of the measure. 
Depending on your use case one of them will probably be the right one.
For the sake of the sample all are giving the same result.



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Showcase Report – Contoso By SpartaBI

Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Thanks, But this Measure not works as in my original file the estimated total cost is not in table it is measure. 

$ ETC = SUM('Table'[Estimated Total Cost]) 

 

 
 Then I tried to make it like this but also it is not giving the right output.
$ ETC = [Estimated Total Cost]

What is your original measure for estimated cost?

@GhadaMehrez please join, I have 5 minutes 🙂

GhadaMehrez
Helper III
Helper III

any advice on how to fix this measure I think it is about aggregation, what can I use to give me the result as {Count}

GhadaMehrez_0-1660070049573.png

 

Tsrivastava
Frequent Visitor

Could use 
% Actual Booked = 
var Countcalculation = count(CustomCalculation)
Return 
divide(Countcalculation , [ActualBooked]) * 0.1

not working still have error:

GhadaMehrez_0-1660042385602.png

 

SpartaBI
Community Champion
Community Champion

@GhadaMehrez what are you trying to do? The function itsled is written wrong.
Maybe share you file and tell what is the result you want to get?

I'm trying to convert the Value of estimated total cost per category in percentage as below:

GhadaMehrez_0-1660043302217.png

 

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.