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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Help with DAX formula for categorization in a fact table

Hello,

 

I would appreciate help with 2 issues below, I am new to PowerBI.

1. I want to create a new column called category which would compare several columns in a fact table to categorize each Purchase order. I tried a switch code but I got the below error

 

ReckyJay_0-1611449805251.png

 

2. I want to compare the resultant Category "No GR, NO IR" to the aging of the delivery date to know if the PO is overdue. The criteria is if "No GR, No IR" > 1 day =  PO Overdue.

 

Thank you for your help.

 

 

3 REPLIES 3
rfigtree
Resolver III
Resolver III

missing ")" to end the switch function.

Anonymous
Not applicable

Thank you so much for the prompt response! I am starting to understand the importance of commas, columns, quotation marks etc. 

Anonymous
Not applicable

ReckyJay_0-1611466025085.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.