Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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] ) )
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
8 | |
8 | |
6 | |
5 |
User | Count |
---|---|
17 | |
14 | |
10 | |
9 | |
8 |