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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Problem 1
Name 1 Number 1
.
.
Name n Number n.
How can I calculate column with values Number i / Count( Name i).
Problem 2
How can I calculate number of blank values.
When I transform column TEXT to TEXT-Count, I will get blank value for blank values.
Hi Pstnaek,
You can add a calculated column to get the count number for each Name
Count = CALCULATE(COUNT(CountValue[Number]),ALLEXCEPT(CountValue,CountValue[Name]))
And then get the value Number i / Count( Name i)
Number/Count = CountValue[Number]/CountValue[Count]
To count blank value, you can use COUNTBLANK function
CountBlank = COUNTBLANK(CountValue[Number])
Regards,
Charlie Liao
Countblank does not work within DirectQuery, that is the problem
add Problem 1 columns are from related tables
I tried this
column = table1[number]/table2[pocet]
Pocet=COUNTAX(table2;table2[name])
, but it says that in direct query Countax can not be used.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 56 | |
| 43 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |