Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
There is one customer column as CUST_CODE which we want to create a calculated column which has the customer value which is filtered based on the REVENUE column.
Basically we want just those customers which has revenue. So want to create a calculated column.
I am using this formula and getting the error.
=CALCULATE(VALUES(FACT_SALES[CUST_CODE]),[Revenue]<>blank())
the folowing calculated column returns TRUE for the customers that made revenue.
=
NOT ISBLANK (
CALCULATE (
SUM ( ACT_SALES[Revenue] ),
ALLEXCEPT ( FACT_SALES, FACT_SALES[CUST_CODE] )
)
)
Thank you @tamerj1 ,
I think I have failed to mention REVENUE is a measure which calculates total Revenue.
Customer is a dimension column.
So based on this I want a calculated column of show customers where REVENUE is not blank.
I understand it is a measure but I guessed it is a sum of a column. However, you can use
=
NOT ISBLANK (
CALCULATE ( [Revenue], ALLEXCEPT ( FACT_SALES, FACT_SALES[CUST_CODE] ) )
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |