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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Total of a measure without column fields

Hello

I am carrying out some analysis and I will show a summarised example of the report view in the table below:

IndexStatusAmountAmount Total
1Provided

 

[OPEN]
2Not provided1[OPEN]
3Not provided8[OPEN]
4Not provided9[OPEN]
5Provided [OPEN]
6Not provided10[OPEN]
  28[OPEN]


All the items except the index above, are stored in measures. I have created a measure to show the amount only for items that are "not provided".

Someone please advise how I can the fill the Amount Total measure to give the amount total in all records for "Not provided", i.e 28 in the example. The ultimate goal is to do a percentage of total ([Amount]/ [Amount Total])

I can do this if it was columns using the ALL and SELECTEDVALUE functions, but I am coming up stuck trying to deduce the calculation since pretty much all processes leading to this are measures.

1 ACCEPTED SOLUTION

Hi @Anonymous ,

My sample is only an example to clarify the use of formula: IF( ISINSCOPE ('Table'[Index]), <original formula>, <formula for the total value>)

This is a way for the totals of measure, columns will automatically sum the total. <oridinal formula> here is your measure, <formula for the total value> here is the specific formula for the total value of measure, I should know the specific sample to provide a solution, it's different in samples.

 

Best regards,

Community Support Team_yanjiang

View solution in original post

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

You can modify the formula to: IF( ISINSCOPE ('Table'[Index]), <origianal formula>, <formula for the total value>)

I give an example to clarify:

vyanjiangmsft_0-1688611863478.png

Create a measure:

Measure =
IF (
    ISINSCOPE ( 'Table'[Index] ),
    MAX ( 'Table'[Sales] ),
    SUM ( 'Table'[Sales] )
)

Get the result:

vyanjiangmsft_1-1688611940232.png

Best regards,

Community Support Team_yanjiang

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

 

Anonymous
Not applicable

Hi @v-yanjiang-msft 

Thank you for this. However, the formula seems to work on columns. Is there a way to have this work on measures?

For example, using your response, the 'Sales' column in my model is a measure. What I require is a sum in a new measure, that will fill all records with the exact sum in the report view. So each index to show 28. As far as I can tell, intellisense does not pick measures to proceed with the formula.

Just for the record I re-worked my model with calculated columns and achieved my goal with a measure referencing these columns. So this here is just for knowledge purposes.

Hi @Anonymous ,

My sample is only an example to clarify the use of formula: IF( ISINSCOPE ('Table'[Index]), <original formula>, <formula for the total value>)

This is a way for the totals of measure, columns will automatically sum the total. <oridinal formula> here is your measure, <formula for the total value> here is the specific formula for the total value of measure, I should know the specific sample to provide a solution, it's different in samples.

 

Best regards,

Community Support Team_yanjiang

Anonymous
Not applicable

Great!

I understood and modified the formula to have <formula for the total value> to be SUMX(Table, [measure]) and this worked.

Brilliant work mate.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.