The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone !
I've checked this issue thoroughly online, and despite finding many leads that looked promising on this forum, none of them work for my specific dataset.
The dataset has the following structure:
What I want to do is to create a matrix that displays the revenue for each company, for each product category, with zero's instead of blank values if the company has no revenue for that product.
I've tried to create two measures:
Hi @Anonymous
Thanks for reaching out to us.
please try this
Measure1 =
VAR _sum=CALCULATE(SUM('Table'[Column3]))
return
IF(ISBLANK(_sum),0, _sum)
Measure2 =
VAR _sum=CALCULATE(SUM('Table'[Column3]))
return
_sum+0
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi Xiaotang,
Thank you for your answer ! Unfortunately this is also not working, the issue is not that the value are null in my source data, but more that there are no rows for these combinations in the row data (ex: Comp2 made no revenue for product B)...
Hi @Anonymous
Thanks for reaching out to us.
please try this
Measure1 =
VAR _sum=CALCULATE(SUM('Table'[Column3]))
return
IF(ISBLANK(_sum),0, _sum)
Measure2 =
VAR _sum=CALCULATE(SUM('Table'[Column3]))
return
_sum+0
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi Jorrafer25,
Thank you for the suggestion but unfortunately this is something I've already tried and it did not work (my measure 2 in the original post)...
Hello!
One option would be to create a measure like:
Revenue2=SUM(Sheet1[Revenue])+0
Best Regards
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |