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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Supermat
Helper I
Helper I

Billing items

Hi,

I really don't know how to solve this problem: I have a table with costumers orders and there's not a flag that tell me how many items are delivered. I only know that (in this example), for order 21003130 there are 3 pieces that model 930001.337 and two of them was shipped how can i put in my report that only last row is active?

 

Thx in advance

Cattura.PNG

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @Supermat 

 

Create a measure that compares the delivery date to today, and if it is greater than today, it is active.

 

_ac =
IF ( MAX ( 'Table'[SBDAT] ) > TODAY (), 1, 0 )

 

Create a measure to count the active status.

 

_Activate_count =
CALCULATE ( COUNT ( 'Table'[SBDAT] ), FILTER ( 'Table', 'Table'[_ac] = 1 ) )

 

Another measure can be created to apply conditional formatting to the field so that the active date is highlighted.

 

_color = IF([_ac]=1,"pink")

 

result:

vangzhengmsft_0-1630571555375.png

Please refer to the attachment below for details. Hope this helps.

If I don't understand you correctly, please consdier sharing more details about it or a simple sample file without any sesentive information for further discussion

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @Supermat 

 

Create a measure that compares the delivery date to today, and if it is greater than today, it is active.

 

_ac =
IF ( MAX ( 'Table'[SBDAT] ) > TODAY (), 1, 0 )

 

Create a measure to count the active status.

 

_Activate_count =
CALCULATE ( COUNT ( 'Table'[SBDAT] ), FILTER ( 'Table', 'Table'[_ac] = 1 ) )

 

Another measure can be created to apply conditional formatting to the field so that the active date is highlighted.

 

_color = IF([_ac]=1,"pink")

 

result:

vangzhengmsft_0-1630571555375.png

Please refer to the attachment below for details. Hope this helps.

If I don't understand you correctly, please consdier sharing more details about it or a simple sample file without any sesentive information for further discussion

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ryan_mayu
Super User
Super User

@Supermat 

i think you need to create a shipped table. Then combine two table to get those rows that are not found in shipped table. those rows are active.





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

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.