Hello,
I have two tables: table sales with measure amount and table product: product name - > product subcategory
I have a problem to display values of amount with granularity of product. The amount in table sales is with product name and not product subcategory, so the value will be repeated, how to display blank instead?
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, I create this data:
Here are the steps you can follow:
1. Create measure calculates the amount of product name to display the duplicate value.
Measure =
CALCULATE(SUM(Sales[amount]),FILTER('Sales','Sales'[ product name]=MAX('Sales'[ product name])))
2. Create measure changes the duplicate value into a blank value.
Measure 2 =
IF(HASONEFILTER('Product'[product subcategory]),BLANK(),SUM(Sales[amount]))
3. Result.
You can downloaded PBIX file from here.
If my answer is not what you need, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
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 @Anonymous ,
According to your description, I create this data:
Here are the steps you can follow:
1. Create measure calculates the amount of product name to display the duplicate value.
Measure =
CALCULATE(SUM(Sales[amount]),FILTER('Sales','Sales'[ product name]=MAX('Sales'[ product name])))
2. Create measure changes the duplicate value into a blank value.
Measure 2 =
IF(HASONEFILTER('Product'[product subcategory]),BLANK(),SUM(Sales[amount]))
3. Result.
You can downloaded PBIX file from here.
If my answer is not what you need, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
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.
Thank you! This worked for a similar issue although I was trying to view data in a Matrix Table that didnt have a proper relationship available between the underlying tables. This workaround allowed for me to view detailed data from one table without duplicating measures created on another table.
@Anonymous wrote:
The amount in table sales is with product name and not product subcategory, so the value will be repeated, how to display blank instead?
This does not sound right, the value should not be repeating. Can you post a screenshot of how you have your relationships configured. It sounds like you are either missing a relationship or it's inactive or filtering in the wrong direction.
User | Count |
---|---|
118 | |
63 | |
61 | |
41 | |
40 |
User | Count |
---|---|
118 | |
67 | |
65 | |
64 | |
50 |