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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.