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.
(RFID = Segment column
RFID Embaded tags =Category Column)
FSc715-1286 This is item pac item code if the [check month wise] is equal to N Or D Need to get the zero in [First Month After Remove Check Sub Dup] Total as well as sub total and in values .If [check month wise] = Blank() only need to get the value in the value as well as subtotals and Totals{
For this I have created [First Month after remove Check Not sub Dup]=IF([Check Month Wise]=BLANK(),[First Month Qty],0)
Then i have create
Here's an approach you can take:
Modify the "First Month After Remove Check Sub Dup" Measure: Update your measure to consider both conditions when calculating the value. It seems you want to display the value only when "Check Month Wise" is blank. Modify your measure as follows:
First Month After Remove Check Sub Dup =
IF([Check Month Wise] = BLANK(), [First Month Qty], 0)
Adjust the Subtotal Calculation: Ensure that your subtotal calculation is taking into account the condition as well. If you're using a measure for the subtotal, make sure it also considers the "Check Month Wise" condition. For example:
First Month After Remove Check Sub Dup Subtotal =
CALCULATE(
SUMX(VALUES('Financial Data Month'[pac Item Code]), [First Month After Remove Check Sub Dup]),
ALLEXCEPT('YourTable', 'Financial Data Month'[Segment], 'Financial Data Month'[Category])
)
The ALLEXCEPT function is used to remove all filters except the ones related to 'Segment' and 'Category'.
Handle Grand Total: Similar to the subtotal, ensure that your grand total calculation considers the conditions. You may need to modify the grand total measure to account for the specific conditions:
First Month After Remove Check Sub Dup Grand Total =
CALCULATE(
SUMX(VALUES('Financial Data Month'[pac Item Code]), [First Month After Remove Check Sub Dup])
)
Filtering Data: If you want to filter out data where "Check Month Wise" is 'N' or 'D', you can adjust your visual level filter or use a measure to filter the data. For example:
Filtered First Month Qty =
CALCULATE(
[First Month Qty],
'YourTable'[Check Month Wise] <> "N" && 'YourTable'[Check Month Wise] <> "D"
)
Then, use this measure in your visuals instead of the original "First Month Qty."
Remember to replace 'YourTable' with the actual name of your table. Adjust the measures accordingly based on your data model and requirements.
If you provide more details about your data model and the structure of your table, I can provide more specific assistance.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
Thank you for tour replay @123abc I tried to handle the subtotal but i am getting grand total of whole First month Qty here i filtered SG only thats why is is showing 5191379 in First month qty
I tried to filter the data based on measure but i am getting the Placeholder error
I will try to share the pbix file
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
14 | |
9 | |
7 |