Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a table visual with multiple colums containg "Text", "Numerical" data, etc. and would like to show a coulmn that shows a % data bar of cells that contain data. How can this be done? Thanks in advance.
Name | Country | City | Age | Completed |
Sid Snot | UK | London | 45 | 100% |
John Doe | New York | 50% | ||
Jane Doe | Spain | Madrid | 75% | |
Micky Mouse | 25% | |||
Buck Rodgers | US | Washington | 22 | 100% |
Solved! Go to Solution.
Hi @StuartSmith ,
You can try this method:
Add a index column, and add these columns:
isnotblankA =
IF (
CALCULATE (
MAX ( 'Table'[Age] ),
FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) )
)
= BLANK (),
0,
1
)
isnotblankCity =
IF (
CALCULATE (
MAX ( 'Table'[City] ),
FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) )
)
= BLANK (),
0,
1
)
isnotblankCoun =
IF (
CALCULATE (
MAX ( 'Table'[Country] ),
FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) )
)
= BLANK (),
0,
1
)
isnotblankN =
IF (
CALCULATE (
MAX ( 'Table'[Name] ),
FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) )
)
= BLANK (),
0,
1
)
Then new a measure:
Completed =
SUMX (
SUMMARIZE (
'Table',
'Table'[isnotblankN],
'Table'[isnotblankCoun],
'Table'[isnotblankCity],
'Table'[isnotblankA]
),
'Table'[isnotblankA] + 'Table'[isnotblankCity] + 'Table'[isnotblankCoun] + 'Table'[isnotblankN]
) / 4
The result is:
Hope these help you.
Here is my PBIX file.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anyone? 🙂
Hi @StuartSmith ,
You can try this method:
Add a index column, and add these columns:
isnotblankA =
IF (
CALCULATE (
MAX ( 'Table'[Age] ),
FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) )
)
= BLANK (),
0,
1
)
isnotblankCity =
IF (
CALCULATE (
MAX ( 'Table'[City] ),
FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) )
)
= BLANK (),
0,
1
)
isnotblankCoun =
IF (
CALCULATE (
MAX ( 'Table'[Country] ),
FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) )
)
= BLANK (),
0,
1
)
isnotblankN =
IF (
CALCULATE (
MAX ( 'Table'[Name] ),
FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) )
)
= BLANK (),
0,
1
)
Then new a measure:
Completed =
SUMX (
SUMMARIZE (
'Table',
'Table'[isnotblankN],
'Table'[isnotblankCoun],
'Table'[isnotblankCity],
'Table'[isnotblankA]
),
'Table'[isnotblankA] + 'Table'[isnotblankCity] + 'Table'[isnotblankCoun] + 'Table'[isnotblankN]
) / 4
The result is:
Hope these help you.
Here is my PBIX file.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That worked great 🙂 I was trying to get it working in 1 measure, instead of mutiple measures, etc.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
99 | |
73 | |
72 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |