Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I am currently using an "IF" function to apply a value of "Applied" or "N/A" within a column of a table.
I am looking for some help in a DAX statement that will allow me to do the following:
Thanks in advance.
Solved! Go to Solution.
Something like:
Total Applied = calculate(countrows(your table),your table[your column]="Applied")
Do similar for N/A and the percentage of these should be trivial from there
@Anonymous,
Create a measure like below,
% =
var __a = CALCULATE(COUNTROWS(Table1),Table1[Status] = "A" )
var __b = CALCULATE(COUNTROWS(Table1),Table1[Status] = "B" )
Return
DIVIDE(__b,__a)
Then change the format as Percentage located under modeling Tab
Regards ,
Siva
You will need a few Dax measures to do it
First of all:
totalRows = CALCULATE(COUNTROWS(yourtable; yourcolumnname = "Applied"; yourcolumnname = "N/A")
Then count for "Applied" or count "N/A"
totalApplied = CALCULATE(COUNTROWS(yourtable);yourcolumnname = "Applied")
totalNA = CALCULATE(COUNTROWS(yourtable);yourcolumnname = "N/A")
Percentage
%Applied = (totalApplied / totalRows) * 100 %NA = (totalNA / totalRows) * 100
Hope this helps you out?
I think the use of ";" is throwing a wrench into the application of the DAX statements.
Any thoughts?
Hi @Anonymous
Jep, my system needs a " ; "
Your system possibly needs a " , "
This is the statement that I am using to translate a "True/False"
CC = if('KPI Dashboard AD'[(Campaign) CC]=TRUE(), "Applied", "N/A")
Your expressions don't seem compatible with my "IF" statement.
@Anonymous
Do you use it as a measure, or do you create a new column (because you should make a new column)
Then you can put CC instead of yourcolumnname which i used in my measures
The "IF" Statement is a function.
When I follow your suggestion and type the DAX statement, eeverything seems in order until I try to name the column. It does not autopopulate and the DAX statement fails.
@Anonymous
You should make the IF statement a column, then it works.... should work
Can you offer me a little more context on how to do this?
1. I have a source column with a value of True, Flase or null
2. I created a separate column and an "IF" statement to translate "True" to "Applied", else "N/A"
3. From this column, I want to count the "Applied" and the "N/A" rows
In the DAX statements I am attempting to write, PBI doesn't seem to "recognize" and autopopulate the column in the DAX statement (step 2, above)
Thanks for sticking with this!!!!
Something like:
Total Applied = calculate(countrows(your table),your table[your column]="Applied")
Do similar for N/A and the percentage of these should be trivial from there
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 91 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |