Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
Need help here.
I am trying to multiply two columns (encircled with BLUE and RED) . Unfortunately, the result shows that it used the total value on the cloumn encircled with BLUE.
Expected output: 116(actual data) x 31 = 3596
Output on Desktop: 130 (total) x 31 = 4030
What I want to be multiplied is the data per row and not the total. Here's the formula of the column encircled with BLACK
multiplication = [Column] * (DISTINCTCOUNT('2015_POSdata'[POS-Active Stations]))
Thank you.
Solved! Go to Solution.
Hi @sclencioco,
I have tested it on my local environment by using the sample data below.
CountMonthday = CALCULATE(COUNTA(Sheet6[Date]),ALLEXCEPT(Sheet6,Sheet6[MonthName]))
DistinctCountMonthday = CALCULATE(DISTINCTCOUNT(Sheet6[Type]),ALLEXCEPT(Sheet6,Sheet6[MonthName]))
Measure = Sheet6[CountMonthday]*Sheet6[DistinctCountMonthday]
Regards,
Charlie Liao
Hi @sclencioco,
I have tested it on my local environment by using the sample data below.
CountMonthday = CALCULATE(COUNTA(Sheet6[Date]),ALLEXCEPT(Sheet6,Sheet6[MonthName]))
DistinctCountMonthday = CALCULATE(DISTINCTCOUNT(Sheet6[Type]),ALLEXCEPT(Sheet6,Sheet6[MonthName]))
Measure = Sheet6[CountMonthday]*Sheet6[DistinctCountMonthday]
Regards,
Charlie Liao
Hi Charlie_Liao
Got it by using your suggested solution and adjusted one of them
CountMonthday = CALCULATE(COUNTA(Sheet6[Date]),ALLEXCEPT(Sheet6,Sheet6[MonthName]))
I used this:
CountMonthday = CALCULATE(DISTINCTCOUNT(Sheet6[Date]),ALLEXCEPT(Sheet6,Sheet6[MonthName]))
I was able to replicate your result.
Thank you!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 67 | |
| 34 | |
| 32 | |
| 29 |