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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
AMBP1973
Helper II
Helper II

Column % of another column

Hello,

I used a Quick MEasure to get a Year to Date Total for a Date column "Approval Date", as below. This returned a result of 18 out of a total of 57 Rows.  However, I am seeking to also get the % of what 18 (YTD count) is of the total 57 rows in the same column. I have tried many ways i.e. DIVIDE, Percentage diffrence etc.. with no success, any assitance with the correct DAX expression would be much appreciated 🙂

 
 
Count of Approval Date YTD =
IF(
    ISFILTERED('E&T Document Status Tracker'[Approval Date]),
    ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
    TOTALYTD(
        COUNTA('E&T Document Status Tracker'[Approval Date]),
        'E&T Document Status Tracker'[Approval Date].[Date]
11 REPLIES 11
Anonymous
Not applicable

Hi @AMBP1973 ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

AMBP1973
Helper II
Helper II

I copied exactly what you provided, but it still gives me this on the card

AMBP1973_0-1697628224448.png

 

hi, @AMBP1973 

 

try below one

count% =  
var  a =

 TOTALYTD(
        COUNTA('E&T Document Status Tracker'[Approval Date]),
        'E&T Document Status Tracker'[Approval Date])
var b =  countrows (all('E&T Document Status Tracker'[Approval Date]))
var c = divide (a,b)
return
1- c
 
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

These not gonna help me to understand your scenario.

 you check  my solution like first check  output of var a=

                                   then           second check output of var b =

and then calculate percentage  

OR

provide more data to check where it trouble

AMBP1973
Helper II
Helper II

Hi @Dangar332. Thankyou so much for your assistance. This worked, however it gave me the opposite % of what I am seeking. It returned 62%, whereas it is more like 38%? Is there a ay to adjust the DAX to accomodate.? Thankyou in advance

hi, @AMBP1973 


you want  percentage like 18/57 as you mention above or something else?

 

Dangar332
Super User
Super User

provide sample data and what you want

Count of YTD Dates % of total.

 

AMBP1973_0-1697624895936.png

Thankyou

hi, @AMBP1973 

use below measure 

count% =  
var  a =

 TOTALYTD(
        COUNTA('E&T Document Status Tracker'[Approval Date]),
        'E&T Document Status Tracker'[Approval Date])
var b =  countrows (all('E&T Document Status Tracker'[Approval Date]))
return 
divide (a,b)
 
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Dangar332 Sorry if I haven't been clear. I am seeking what % of 57 is 18? Therefore around 38% as the data currently stands. Thanks for your assistance

my solution give you exactly what you want 

18:57*100 =

(18*100):57 =

1800:57 = 31.58%

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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