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
ritanoori
Resolver I
Resolver I

Trying to offset rows with 0 value in same period

Hello everyone

I have a table where includes PO-POLine number, Amount and Period. 

I created a measure using calculate ALLEXCEPT

PO Offset = CALCULATE([Amount],ALLEXCEPT('Table','Table'[PO-POLine],'Table'[Period]))
Offset = if([PO Offset] = 0,"Yes","No")
then adding "Offset" measure to filter pane to exclude "Yes". 
but it doesn't seem to be working. looking at the screenshot below. It seems that the measure is looking at the Amount in all period to decide if PO is offset "has value" or not. 
What did I do wrong and how can I solve this issue. 
 
Amount in October is 0 yet the PO offset measure is showing -564Amount in October is 0 yet the PO offset measure is showing -564
1 ACCEPTED SOLUTION
ritanoori
Resolver I
Resolver I

I solved the issue by creating calculated column in the table for "offset" instead of a measure. Added that to my visual filter and it works fine  😀

View solution in original post

4 REPLIES 4
ritanoori
Resolver I
Resolver I

I solved the issue by creating calculated column in the table for "offset" instead of a measure. Added that to my visual filter and it works fine  😀

ryan_mayu
Super User
Super User

@ritanoori 

Are period name and period the same column?

If not, maybe you can change the DAX to below.

PO Offset = CALCULATE([Amount],ALLEXCEPT('Table','Table'[PO-POLine],'Table'[Period Name]))

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks. But it's not solving the issue. Period.PNG

@ritanoori 

Could you pls provide the sample data to have a further investigation?

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.