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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Using the Total value of a Column as a separate display

Hi All

 

I have a table that when the blanks are filtered out in the RoSIE column shows the correct % as a total = 72%

 

DeonDP_0-1613617481622.png

 

Is there a way that I can show the total of 72% in a separate card as a visualization?

 

Unfortunately the two columns do not have a common denominator at this stage.  I tried to write a DAX formula but just got lost in the process.

 

Your assistance will be appreciated.

2 ACCEPTED SOLUTIONS

Hi @Anonymous ,

Try the following formula to create measure:

RoSIE Success % = 
VAR tab = 
  SUMMARIZE(
    'Merge VLEvsRoSIEpmnt',
    'Merge VLEvsRoSIEpmnt'[Region Vendor No_],
    "RoSIESum", SUM( 'Merge VLEvsRoSIEpmnt'[RoSIE Processed] ) 
  )
VAR result = 
  CALCULATE(
    DIVIDE(
    SUM('Merge VLEvsRoSIEpmnt'[RoSIE Processed]),
    SUM('Merge VLEvsRoSIEpmnt'[TransTotal])
    ),
    FILTER(
      tab,
      NOT(
        ISBLANK([RoSIESum])
      )
    )
  )
RETURN result

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

View solution in original post

Anonymous
Not applicable

Many thanks for your reply Winniz - just in the middle of something that needs to wrapped up - will apply the formula asap and get back to you.

 

cheers

 

D

View solution in original post

19 REPLIES 19
PhilipTreacy
Super User
Super User

Hi @Anonymous 

How are youu calculating Rosie %?  Have you tried putting it in a card?

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hey Phil

 

I have a table  where each column is calculated separately.  They all add up in the visual and to the eye looks like they balance.

 

The Total Invoices column includes all types of invoices (RoSIE, EDI, Non Job, etc) and when I filter out the blanks in the RoSIE column it works fine, but to convert it to a DAX formula seems real harder

 

It would be real easy if I can just use the filtered 72% somehow as a number in a card as a visualization.

 

DeonDP_0-1613619424810.png

 

Anonymous
Not applicable

Hey Phil

 

So I've dumbed it right down to only a few rows, but the principle will still be the same.

 

Column A:H is my actual dataset.  Column K:P is a pivot and displays from my actual PowerBI dashboard.

 

The tricky bit is that some vendors have RoSIE and Other invoices, whilst some vendors only have Other invoices.  Some Vendors may have 100% RoSIE, but that's ok, because I want the RoSIE % anyway. 

 

I somehow need to exclude vendors who do not have any RoSIE invoices, or who only have Other invoices, from the % calculation.

 

Maybe I need to add another column or something first before doing the DAX formula.

I have also included two screenshots with displays for the Vendors from my actual dashboard.

 

DeonDP_0-1613953002998.png

 

Thanks again for your input.  I really appreciate help from the experts.

 

Cheers

 

D

Anonymous
Not applicable

Hey Phil

Forgot to add:  No vendor will have RoSIE and EDI, so the formula that works for RoSIE will work for EDI as well.  Any vendor can have Other and RoSIE or EDI, but not Other and RoSIE and EDI

amitchandak
Super User
Super User

@Anonymous , How you got RoSIE %, that should work for grand total too

 

example

divide(sum(Table[RoSIE]), sum(Table[Total Invoice]))

 

divide(sum(Table[RoSIE]), Count(Invoice[Invoice]))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hey Amitchandak

 

Thanks for replying.  The thing is that when I remove the Blanks form the RoSIE column, the calculation is still correct, but it calculates the RoSIE invoices as a percentage of all invoices, RoSIE related or not. 

 

I am really only after the 72% as a number in a seperate card in a dashboard.  Just not sure ecaxtly how to approach this one.

 

DeonDP_0-1613618769435.png

 

@Anonymous , Assuming col is a group by /row/column of your table/matrix. Create a formula like

 

calculate( [RoSIE %], filter(Values(Table[Col1]), not(isnblank(sum(Table[RoSIE]) ))))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks Amitchandak - I will give it a go and get back to you shortly

Anonymous
Not applicable

Hi Amitchandak

 

I think we are on the right track, but almost there:

 

RoSIE Success % = CALCULATE([RoSIE Inv%], FILTER(VALUES('Merge VLEvsRoSIEpmnt'[RoSIE Processed]), NOT(ISBLANK(SUM('Merge VLEvsRoSIEpmnt'[RoSIE Processed])))))

 

DeonDP_0-1613622099433.png

 

Maybe the DAX formula needs a tweak to get it to 72%

 

D

 

Anonymous
Not applicable

Hey Amitchandak

 

So I've dumbed it right down to only a few rows, but the principle will still be the same.

 

Column A:H is my actual dataset.  Column K:P is a pivot and displays from my actual PowerBI dashboard.

 

The tricky bit is that some vendors have RoSIE and Other invoices, whilst some vendors only have Other invoices.  Some Vendors may have 100% RoSIE, but that's ok, because I want the RoSIE % anyway. 

 

I somehow need to exclude vendors who do not have any RoSIE invoices, or who only have Other invoices, from the % calculation.

 

Maybe I need to add another column or something first before doing the DAX formula.

I have also included two screenshots with displays for the Vendors from my actual dashboard.

 

DeonDP_0-1613953002998.png

 

Thanks again for your input.  I really appreciate help from the experts.

 

Cheers

 

D

Anonymous
Not applicable

Forgot to add:  No vendor will have RoSIE and EDI, so the formula that works for RoSIE will work for EDI as well.  Any vendor can have Other and RoSIE or EDI, but not Other and RoSIE and EDI

Hi @Anonymous ,

Try the following formula:

RoSIE Success % = 
CALCULATE(
  [RoSIE Inv%], 
  FILTER(
    VALUES( 'Merge VLEvsRoSIEpmnt'[RoSIE Processed] ), 
    NOT( 
      ISBLANK( 'Merge VLEvsRoSIEpmnt'[RoSIE Processed] )
    )
  )
)

 image.png


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

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

Anonymous
Not applicable

Hey Winniz

 

I am attempting to upload an extract (excel spreadsheet) of my dataset.  Don't have permission to upload.

 

Any suggestions of how I can get it to you?

 

Cheers

 

Deon

Hi @Anonymous ,

 

You can try to upload the excel file to OneDrive or SharePoint, and then share the link with me.

 

Best Regards,
Winniz

Anonymous
Not applicable

Hey Winniz

 

So I've dumbed it right down to only a few rows, but the principle will still be the same.

 

Column A:H is my actual dataset.  Column K:P is a pivot and displays from my actual PowerBI dashboard.

 

The tricky bit is that some vendors have RoSIE and Other invoices, whilst some vendors only have Other invoices.  Some Vendors may have 100% RoSIE, but that's ok, because I want the RoSIE % anyway. 

 

I somehow need to exclude vendors who do not have any RoSIE invoices, or who only have Other invoices, from the % calculation.

 

Maybe I need to add another column or something first before doing the DAX formula.

I have also included two screenshots with displays for the Vendors from my actual dashboard.

 

DeonDP_0-1613953002998.png

 

Thanks again for your input.  I really appreciate help from the experts.

 

Cheers

 

D

Anonymous
Not applicable

Hey Winniz

Forgot to add:  No vendor will have RoSIE and EDI, so the formula that works for RoSIE will work for EDI as well.  Any vendor can have Other and RoSIE or EDI, but not Other and RoSIE and EDI

Hi @Anonymous ,

Try the following formula to create measure:

RoSIE Success % = 
VAR tab = 
  SUMMARIZE(
    'Merge VLEvsRoSIEpmnt',
    'Merge VLEvsRoSIEpmnt'[Region Vendor No_],
    "RoSIESum", SUM( 'Merge VLEvsRoSIEpmnt'[RoSIE Processed] ) 
  )
VAR result = 
  CALCULATE(
    DIVIDE(
    SUM('Merge VLEvsRoSIEpmnt'[RoSIE Processed]),
    SUM('Merge VLEvsRoSIEpmnt'[TransTotal])
    ),
    FILTER(
      tab,
      NOT(
        ISBLANK([RoSIESum])
      )
    )
  )
RETURN result

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Anonymous
Not applicable

Many thanks for your reply Winniz - just in the middle of something that needs to wrapped up - will apply the formula asap and get back to you.

 

cheers

 

D

Anonymous
Not applicable

You Da MAN!!!

 

DeonDP_0-1614051189845.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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