The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now
hi,
I created a new measure using summarize. I want the station slicer is not to change the result of the ntrips measure. I used the removefilters command, but I could not achieve the desired result.
Sample file is here https://1drv.ms/u/s!AsQNupGZsOP-sRIvpROXCVhKtkjk?e=8nlfpQ
Solved! Go to Solution.
@Anonymous , Try like
NTrips =
var a = SUMMARIZE(calculateTable('Table', all('Table'[STATION]) ),'Table'[LINE],'Table'[DIRECTION],'Table'[DATE],"ntrips", CALCULATE(MAX('Table'[TRIPS])))
return
sumx(a,[ntrips]
)
Best in such case to use independent table for STATION
Power BI Abstract Thesis: Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE
@Anonymous , Try like
NTrips =
var a = SUMMARIZE(calculateTable('Table', all('Table'[STATION]) ),'Table'[LINE],'Table'[DIRECTION],'Table'[DATE],"ntrips", CALCULATE(MAX('Table'[TRIPS])))
return
sumx(a,[ntrips]
)
Best in such case to use independent table for STATION
Power BI Abstract Thesis: Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE
hi @amitchandak
After creating a independent station table, the issue was resolved. thank you so much.
thx for quick answer but ntrips value change when i select multiple date with station.
User | Count |
---|---|
160 | |
110 | |
96 | |
86 | |
75 |
User | Count |
---|---|
159 | |
136 | |
133 | |
81 | |
61 |