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

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.

Reply
sdhn
Responsive Resident
Responsive Resident

Condition & Counts

Hi All,

 

Here are the two columns from my source table "Table A"

 

sdhn_0-1640302457097.png

 

 

1)

If Column F = Not Assessed or Blank = Not Assessed
If Column F = Yes or No = Assessed
 
2)
I need total counts of all values listed in the Column "D".
 
sdhn_4-1640300771309.png
Counts F = COUNTROWS(ALLSELECTED in "NON APPLICABLE","PENDING',"SCHEDULED", "WORKAROUND", "PATCHED" (Col F))-
 Not working, 
 
 
 I will show output on graphs. I need to write measure, any help will be appreciated.  Thanks 

 

1 ACCEPTED SOLUTION

@sdhn 

 

Download this file:

https://gofile.io/d/9GknaC

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

7 REPLIES 7
sdhn
Responsive Resident
Responsive Resident

Thanks

column has created 

How to display counts in the graph by values ? Total counts of Assesssed & Non Assessed? 

sdhn
Responsive Resident
Responsive Resident

For number 2, i can get total counts of rows from below:

Counts Status = COUNTROWS(ALLSELECTED('TABLE A'[D]))-1
 
But I want for indiviual values as:
sdhn_0-1640301859653.png

  Please note:

Column values are in sentensec for each rows.

In each sentense either pending , scheduled , patched, workaround & nonapplicable is used. 

Hi @sdhn 

 

Can you post sample data as text and expected output?

please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
4. Relation between your tables

Appreciate your Kudos!!
LinkedIn:www.linkedin.com/in/vahid-dm/

sdhn
Responsive Resident
Responsive Resident

 Column F
 YES
 NO
 NO
 YES
  
  
  
If Column F = Not Assessed or Blank = Not Assessed
If Column F = Yes or No = Assessed
I have my existing code but not getting values as above.

Your help will be appreciated 

 
Thats I need it. Thanks 

@sdhn 

 

Try this:

Column =
SWITCH(
    TRUE(),
    [Column F] = "NOT ASSESSED"
        || [Column F] = BLANK(), "NOT ASSESSED",
    [Column F] = "YES"
        || [Column F] = "NO", "ASSESSED"
)

 

Output:

VahidDM_0-1640303964571.png

 

 

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

sdhn
Responsive Resident
Responsive Resident

I need to dispaly in the graph.

Table is exsited.  Thanks 

@sdhn 

 

Download this file:

https://gofile.io/d/9GknaC

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors