Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi All,
In my table i have columns like 1.Quantiy, 2. Price, 3. Payment Date. For some values of price, i dont have payment Dates. Now, i want to calculate Total sales=[Quantity]*[Price], only for available Payment Dates and exclude when payment date value is not available for that particular price column value. Do anyone have idea on how to do this?
Looking for sooner solution.
TIA
Hi, @Anonymous
Based on your description, I create data to reproduce your scenario.
Table:
Then you may create a measure as follows.
Total Sales =
SUMX(
FILTER(
'Table',
'Table'[Payment Date]<>BLANK()
),
'Table'[Quantity]*'Table'[Price]
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try
//new Measure
sumx(filter(table,not(isblank(table[price])),table[Quantity]*table[Price])
Or
calculate(sumx(table,table[Quantity]*table[Price]),not(isblank(table[price])))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.