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
Maciek
New Member

DAX IF statement (category not on visualization)

Hey All,

 

How to take results of this IF statement :

 

FACILITIES = IF(DISTINCTCOUNT(Inventory_Snapshot[FACILITY])>1,"Multiple","Single")

 

Results:

CATALOG_IDFACILITIES
2Single
3Single
4Single
5Single
282567Multiple
1179700Multiple
1316871Multiple
1360016Multiple

 

to this: count(CATALOG_ID) for If statement results 

CATALOG_ID not present on visual

 

Result:

Multiple 4

Single 4

 

Thanks,

Maciek

 

2 REPLIES 2
Thejeswar
Resident Rockstar
Resident Rockstar

@Maciek,

Building a Table visualization With Facilities and Count of Catalog ID would solve this.

(iF that is what you want...)

 

@Thejeswar yeah not sure if i want that, since I Start with big table of inventory, wanna now which parts are available in multiple facilities, and then whats the overall of parts in multiple vs single facilities. So its easy to create If statement using DAX checking which part is present in multiple vs single facielietes, but then to take that result and calulte the rest is hard.

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.