Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I have a table with invoice status by week, I want to get the Invoice status by month.
If any week within a month have the "Invoice Week Status" Not Approved than all the rows in the column "Invoice Status by Month" shoud be Not Approved.
Thanks a mil!
Solved! Go to Solution.
@Cristina893 , Try a new column like
if(isblank(countx(filter(table, [month] =earlier([Month]) && [Invoice Status by week] = "Not Approved"),[Invoice Status by week])),"Approved", "Not Approved")
if needed add
&& [Invoice_no] =earlier([Invoice_no])
Hi @Cristina893 ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
Invoice Status by Month = IF(
"Not Approved" in SELECTCOLUMNS(FILTER('Table',[Year+Month]=EARLIER('Table'[Year+Month])),"1",[invoice Status by week]),
"Not Approved","Invoice Approved")
2. Result.
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Cristina893 ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
Invoice Status by Month = IF(
"Not Approved" in SELECTCOLUMNS(FILTER('Table',[Year+Month]=EARLIER('Table'[Year+Month])),"1",[invoice Status by week]),
"Not Approved","Invoice Approved")
2. Result.
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Cristina893 , Try a new column like
if(isblank(countx(filter(table, [month] =earlier([Month]) && [Invoice Status by week] = "Not Approved"),[Invoice Status by week])),"Approved", "Not Approved")
if needed add
&& [Invoice_no] =earlier([Invoice_no])
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |