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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Create DAX table with % calculation

Hello,

 

I need your support with the next issue please.

I have the next 2 tables.

I want to create a 3rd table, calculating for every Audit type, the % of the number of companies in column (company) in table B from the total number of companies identified as 'Important' in table A.

 

Is it possible to create a new column with this calculation automatically once per month ? (target is to avoid to overwrite the existing one, but for example to create new column with the updated % every end of month - to keep history).

 

pbi2.JPG

 

 

Thanks for your support.

Best regards.

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Anonymous ,

what about the following solution:

 

26-05-_2020_01-02-48.jpg

 

 Regards FrankAT

View solution in original post

6 REPLIES 6
FrankAT
Community Champion
Community Champion

Hi @Anonymous ,

what about the following solution:

 

26-05-_2020_01-02-48.jpg

 

 Regards FrankAT

Anonymous
Not applicable

Thanks it works perfectly !

 

Greg_Deckler
Community Champion
Community Champion

@Anonymous I believe you want something like:

Table C = 
ADDCOLUMNS(
  ADDCOLUMNS(
    SUMMARIZE(
      'Table B',
      [Audit type],
      "Number of companies",COUNTROWS(DISTINCT('Table B'[Company]))
    ),
    "Important company in",COUNTROWS(ALL('Table A'),[Classification]="Important")
  ),
  "%",[Number of companies] / [Important company in]
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hello,

 

Thanks for the solution it is working (after a small correction in line 8 - missing 'FILTER').

missing.JPG

 

BR.

amitchandak
Super User
Super User

@Anonymous , calculation of no of companies and important in companies creating doubt, can you explain with example

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

Hello,

 

Thanks for your interest.

I succeeded to create the table with the team support 😉

I still don't have an answer for the second part of my question:

 

Is it possible to save the calculated "%" in a new table (to take a fixed image of these value), every specified frequency (every end of month for example) ? 

 

BR.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.