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
Anonymous
Not applicable

Urgent Help, calculation with 1 - measure

Help, i've got below calculation, works fine, i need another column B which is 1-A.  (B = (1 - [A])) , but it give me all other years that i don't need. (calculation itself is correct, see pic2)   i did put a page filter which date is on and after 2012. 

CRM.PNG

CRM.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Instead of    B := 1 - [A]   You can probably do...    B := IF ([A], 1 - [A])

 

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

 

You can use if statement with isblank function to filter these blank records:

B = if(ISBLANK([A])=FALSE(),(1 - [A]))

 

In addition, you can also add a visual level filter to filter the blank records.

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

when I change the date to date it's works fine, only wrong when i use the 'Date Hierarchy' format. 

Anonymous
Not applicable

Instead of    B := 1 - [A]   You can probably do...    B := IF ([A], 1 - [A])

 

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