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.
Hi,
I have "TA" column which is "True/False" data type. I am adding this in Card visualization to get count for only True and applying visula level filter like "TA" = True" getting values based on filter selection fine upto here.
if there no value for True getting blank how to make 0? and in my db there is no blanks only True and False statements.
Based on filter selection sometimes values shwoing in card and when condition is no met showing blanks.
Thanks,
Venkat
Solved! Go to Solution.
Hi, @Anonymous
According to your description, you can follow my steps:
1. Create a calculated column:
Column =
SWITCH(
[TA],
TRUE(),1,
FALSE(),0)
2. Create a measure:
Count =
var _count=CALCULATE(COUNT([Column]),'Table'[Column]=1)
return
IF(_count=BLANK(),0,_count)
3. And place this measure on the card chart, you can get what you want, like this:
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
calculate(countrows(Table), filter(Table, Table[TA] =true()))+0
Please find the pbix file. I am not getting solution with your calc.
Regards,
Venkat
if not able to access the pbix file then below is the user case.
Region is my clicer and TA is into Card Visual -bydefault when drag this field Count of TA and i want the result only "True" so Visula level filter applied. when i select PMG i will get count 1 and when select SKG showing "Blank" this should be replaced with 0
Region | TA |
PMG | True |
SKG | False |
SKO | False |
PMO | False |
GA | True |
GAS | True |
Thanks,
Venky
Hi, @Anonymous
According to your description, you can follow my steps:
1. Create a calculated column:
Column =
SWITCH(
[TA],
TRUE(),1,
FALSE(),0)
2. Create a measure:
Count =
var _count=CALCULATE(COUNT([Column]),'Table'[Column]=1)
return
IF(_count=BLANK(),0,_count)
3. And place this measure on the card chart, you can get what you want, like this:
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
113 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |